当前位置:编程学习 > C#/ASP.NET >>

关于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);
麻烦了

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,