C++中bool型变量按位取反总是为true #include<iostream>usingnamespacestd;intmain(){boola =false; cout << a << endl; a = ~a; cout << a << endl; a = ~a; cout << a << endl;return0; } 0 1 1