C# 程序Hello World

 先创建一个工程文件->选择的是console application。

然后开始写代码如下:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program// 默认的开始程序
    {
        //方法的开始函数
        static void Main(string[] args)
        {
            //output Hello World! in the consle windows!
            Console.WriteLine("		


The first app in C#!-------



		Hello World!



_____________________________________by.liyuechao");
            Console.ReadKey();
        }
    }
}


代码的运行结果如下:

原文地址:https://www.cnblogs.com/KongkOngL/p/4074452.html