可能重复: 逻辑运算符的书面版本.
我注意到,c + +定义关键字and,or,not,xor,and_eq,or_eq,not_eq和xor_eq作为替代&&,||,!,^,&=,|=,!=和|=.他们很少使用!怎么了?它们不便携吗?
and
or
not
xor
and_eq
or_eq
not_eq
xor_eq
&&
||
!
^
&=
|=
!=
c++ operators
c++ ×1
operators ×1