先创建一个工程文件->选择的是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("\t\t\n\n\nThe first app in C#!-------\n\n\n\n\t\tHello World!\n\n\n\n_____________________________________by.liyuechao");
Console.ReadKey();
}
}
}
代码的运行结果如下: