64,654
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
void func(int i1, int i2){};
void main()
{
int x=10;
cout<<(x--,56)<<","<<x<<endl;///56,9、、可以看出先计算 前 面的
cout<<x<<","<<x--<<endl;///8,9、、可以看出先计算 后 面的
cout<<x<<","<<--x<<endl;///7,7、、可以看出先计算 后 面的
}
/*
结果
56,9
8,9
7,7
Press any key to continue*/