emmm,老规矩,第一个程序C#的正确输出方式:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace helloworld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("hello world!");//打印到控制台
}
}
}
然而上面的代码就写了
Console.WriteLine("hello world!");//打印到控制台
创建好一个helloworld项目后其他的语句就已经导入进来了。。。
语法格式就像是C++ 和 Java的混合体一样。