您可能不知道的 C++ 关键字

C++ 有些操作符,其实有对应的关键字(目的是为了在没有这些字符的键盘也可以输入C++程序)

 

and      &&
and_eq   
&=
bitand  
&
bitor   
|
compl   
~
not     
!
or      
||
or_eq   
|=
xor     
^
xor_eq  
^=
not_eq  
!= 


从可读性的角度看, and, not ,or  比操作符更好。

posted @ 2010-08-09 17:17  napoleon_liu  阅读(177)  评论(0编辑  收藏  举报