关于asp.net 2.0 C# 运算符的解释
你好我想教你一些关于关于asp.net 2.0 C# 运算符的用法和解释
我做了一个实例 但是我不是很明白?实例如下:
using System;
using System.Collections.Generic;
using System.Text;
namespace Myc3
{
class Program
{
static void Main(string[] args)
{ //以上的我不懂是什么意义可以帮我解释一下吗?
int a, b, c, d;
a = 2;
c = 6;
a += 8;
b = a + 3 * 4;
c-=b-10/3;
d=b%3;
System.Console.WriteLine("a的值是:"+a);
System.Console.WriteLine("b的值是:"+b);
System.Console.WriteLine("c的值是:" + c);
System.Console.WriteLine("d的值是:" + d);
}
}
}
以是我懂的地方
请多指教
麻烦了
追问:不好意思是我没有说清楚是以下这些
int a, b, c, d;
a = 2;
c = 6;
a += 8;
b = a + 3 * 4;
c-=b-10/3;
d=b%3;
System.Console.WriteLine("a的值是:"+a);
System.Console.WriteLine("b的值是:"+b);
System.Console.WriteLine("c的值是:" + c);
System.Console.WriteLine("d的值是:" + d);
麻烦了