C#基础学习过程中的第一篇代码
这个是我在学习C#过程中的第一篇代码,学习过程中没有专门去做笔记,全部注释在了代码当中了
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace No1 7 { 8 /// <summary> 9 /// 这是一个类,包含一个Main方法 10 /// </summary> 11 class Program 12 { 13 static void Main(string[] args) 14 { 15 #region 第一段代码 16 //Console.WriteLine("Hello World"); 17 //Console.Write("你好!"); //此处Write后没有Line 会出现不换行的结果,造成下一行运行的结果直接在此行继续输出显示 18 //Console.Write("大家好"); 19 #endregion 20 Console.WriteLine("Hello"); 21 Console.ReadKey(); 22 } 23 } 24 } 25 26 27 /* 28 输出结果为: 29 30 Hello World 31 你好!大家好 32 33 */