大家一定小心位运算,勤加括号 比如下面的代码输出为0
0
#include<bits/stdc++.h> using namespace std; int main() { int x = 0; int y = 0; cout << (x&1==y) << endl; return 0; }