第三章:程序结构

using System;//using 引入的意思   System命名空间
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ant
{
    class Program//
    {
        static void Main(string[] args)//有四种写法
        {
            //名命空间--类--方法(还包括其他成员)
            Console.WriteLine("Hello word!");
            Console.Read();//暂停  --ctrl+F5
        }
    }
}

运行键为:

 

 

运行结果为

 

posted @ 2020-06-03 22:32  进一步海阔天空  阅读(120)  评论(0编辑  收藏  举报