编程工具:Visual Studio 2015
简单的第一个程序:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace _1_hello_world
{
class Program
{
static void Main(string[] args)
{
WriteLine("Hello world !");
}
}
}
1.若未声明using static System.Console;
则在调用WriteLine("Hello world !")
函数时需要添加名称空间和类名,如:System.Console.WriteLine("Hello world !")