类型:一,值类型:1,简单类型:整型 :有符号整型(带负号)
无符号整型(无负号)
浮点型:就是带小数点
字符型
步尔型
2,枚举类型
3,结构举类型
二,引用类型:1,类类型;class用户自定义,object是所有类型的基类
2,接口类型;interface
3,委托类型;delegcote
4,数组类型
5,字符串;string
// Console.WriteLine("请输入;");
//string s = Console.ReadLine();//将界面输入的字符接收赋值的变量
//Console.WriteLine("a+b的和为:");
// Console.WriteLine(a+b);
//double a = 1.2;有小数点的double
//int b = 3;单个数int
//int c = (int)a + b;强制转换(int)
//Console.WriteLine(c);
//Console.ReadLine();
//string a =" hello";字符型用string,用“”
//string b = "h";
//Console.WriteLine(a+b);
//Console.ReadLine();
//int a = 12;
//int b = 4;
//int c = a - b;
//Console.WriteLine(c);
//Console.ReadLine();
}