#include<iostream>
using namespace std;
int main() {
//=
int a = 10;
//+=
a += 2;
//-=
a -= 3;
//*=
a *= 4;
// /=
a /= 9;
// %/
a %= 2; // a = a % 2
cout << "a=" << a << endl;
cout << sizeof(a) << endl;
system("pause");
return 0;
}
赋值运算符
最新推荐文章于 2024-08-16 16:51:12 发布