C#入门 Hello World

 1 //导入微软提供的命名空间,以便使用
 2 using System;
 3 using System.Collections.Generic;
 4 using System.Linq;
 5 using System.Text;
 6 using System.Threading.Tasks;
 7 
 8 namespace ConsoleApp2//命名空间
 9 {
10     class Program//
11     {
12         static void Main(string[] args)//Main方法 程序入口
13         {
14             Console.Write("Hello World!"); //命令 以分号结束
15             //Ctrl + F5直接运行
16             //F5调试
17         }
18     }
19 }

 

猜你喜欢

转载自www.cnblogs.com/xcfxcf/p/12306435.html