版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_35030499/article/details/82778679
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//库Dll引用,后几章讲
namespace HelloWorld //命名空间
{
//类 类名
class Program
{
static void Main(string[] args) //Main方法,程序入口,从这里开始执行
{
Console.WriteLine("Hello Timor"); //所写的代码
Console.ReadLine();
}
}
}
//单行注释 多行注释
//注释语句,其实就是不被执行的代码
//一个好的注释,会事半功倍。
/* 这里也是注释 */
///我是多行注释
///
自己去百度C# 关键字,要会读会写,事件长了就熟练了。
关键字,就是系统内置的几个单词,不能改变。
没多少单词,现在用的少10几个左右,后期会增多。
我先写一些 ,比用,常用的。
// class namespace using int float bool double if do while for
先写这些 ,后期学到那个,再用