标签:eric task 运行 div name stat 改变 alt image
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int a = 10; int b = 11; Console.WriteLine("a++="+a++); Console.WriteLine("++a="+ ++a); Console.WriteLine("b--=" + b--); Console.WriteLine("--b=" + --b); } } }
运行结果让人很惊讶
a++程序运行到这行时 a的值不做改变的 当程序运行下一行a的值加一;
++a当程序运行到这一行a的值就直接改变
标签:eric task 运行 div name stat 改变 alt image
原文地址:http://www.cnblogs.com/cai-yuan/p/7718881.html