标签:
1 int main() 2 { 3 int i=0,j=0,a,b; 4 a=i++; 5 b=++j; 6 cout<<"i="<<i<<endl; 7 cout<<"j="<<j<<endl; 8 cout<<"a="<<a<<endl; 9 cout<<"b="<<b<<endl; 10 }
输出能看出++i和i++的区别.
i++和++i的区别
原文地址:http://www.cnblogs.com/coffiasd/p/4202896.html