C#第一周

长字符的表示
 1 namespace ConsoleApplication6
 2 {
 3     class Program
 4     {
 5         static void Main(string[] args)
 6         {
 7             string name;//声明
 8             name = "蔡恒";//赋值
 9                 Console.WriteLine(name);//使用
10                 Console.ReadKey();
11         }
12     }
13 }

数字的加法

 1 namespace ConsoleApplication6
 2 {
 3     class Program
 4     {
 5         static void Main(string[] args)
 6         {
 7             int a =4;
 8             int b = 8;
 9             double n=a+b;
10             Console.WriteLine(n);
11             Console.ReadKey();
12 
13 
14         }
15     }
16 }

 

C#第一周

上一篇:C#中反射的使用(How to use reflect in CSharp)(2)


下一篇:窗口类(Window Class)概述