
C#
文章平均质量分 56
iteye_19643
这个作者很懒,什么都没留下…
展开
-
c#教程第一课:简单的欢迎程序
本节程要达到如下几个目的: 1.理解一个C#程序的基本结构。 2.初步了解"名称空间"的概念。 3.初步了解"类"的概念。 4.了解"Main"方法所做的工作。 5.学会如何读取命令行输入信息。 6.学会使用控制台输入/输出 (I/O)语句。 1.清单1-1. 一个简单的欢迎程序Welcome.cs [code="c#"]// Namespace Decl...原创 2009-04-14 04:53:18 · 181 阅读 · 0 评论 -
2-1 变量的赋值
[code="c#"]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace VarTest { class Program { static void Main(string[] args) ...2009-07-06 10:17:17 · 116 阅读 · 0 评论 -
2-2 使用 布尔变量
BoolTest [code="c#"] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BoolTest { class Program { static void Main(string[] ar...2009-07-06 10:23:11 · 128 阅读 · 0 评论 -
DecimalTest
[code="c#"] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DecimalTest { class Program { static void Main(string[] args) ...2009-07-06 10:32:13 · 97 阅读 · 0 评论 -
StrChTest
[code="c#"] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StrChTest { class Program { static void Main(string[] args) ...2009-07-06 10:47:25 · 89 阅读 · 0 评论 -
ch02 StructTest
struct 是 值类型,类 是 引用类型。 [code="c#"] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StructTest { // 定义 point 结构 public struct point ...2009-07-06 11:09:32 · 161 阅读 · 0 评论 -
IntToDoubleTest
隐式转换,通常 将 低类型 向 高类型 转换。 [code="c#"] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace IntToDoubleTest { class Program { stat...2009-07-06 11:26:32 · 82 阅读 · 0 评论 -
Ch02 ConstTest
[code="c#"] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConstTest { class Program { public const double piL = 3.14; // 定义...2009-07-06 13:33:06 · 115 阅读 · 0 评论 -
ReadOnlyTest
[code="c#"] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ReadOnlyTest { // 定义 point 结构 public struct point { public i...2009-07-06 14:00:56 · 127 阅读 · 0 评论