bool a=true;
6 bool b=false;
7 cout <<( a and b )<< endl; 中间必须得用()要不就是语法错误了
8 cout << (a or b) << endl;中间必须得用()要不就是语法错误了
9 cout <<( not a) << endl;中间必须得用()要不就是语法错误了
cout << (a not_eq b) << endl; not_eq也是关键字,最后值位1
and 和or 和not都是关键字
int i = 65;
12 int j = 34;
13 cout << (i bitand j) << endl; 这也是关键字 最后输出 0
14 cout << (i bitor j ) << endl;关键字,输出99