标签:ssi inf 必须 string pre 赋值 赋值运算符 lambda soft
1 (类型)表达式
1 var = var op expression 用扩展赋值运算符可表达为 var op=expression
1 static void Main(string[] args) 2 { 3 int a = 5 / 2; 4 int b = 5 % 2; 5 double c = 5.0 % 2.2; 6 Console.WriteLine(a); 7 Console.WriteLine(b); 8 Console.WriteLine(c); 9 10 int d = 4; 11 Console.WriteLine(d++); 12 Console.WriteLine(++d); 13 14 //把89右移一位 15 Console.WriteLine(Convert.ToString(89,2)); 16 //把2进制转换成10进制 17 Console.WriteLine(Convert.ToInt32("0101100",2)); 18 }
标签:ssi inf 必须 string pre 赋值 赋值运算符 lambda soft
原文地址:https://www.cnblogs.com/fanjianzhi/p/12821675.html