可重载运算符表:
Operator
Name
Type
,
Comma
Binary
–>*
Pointer-to-member selection
!
Logical NOT
Unary
/
Division
!=
Inequality
/=
Division/assignment
%
Modulus
<
Less than
%=
Modulus/assignment
<<
Left shift
&
Bitwise AND
<<=
Left shift/assignment
Address-of
<=
Less than or equal to
&&
Logical AND
=
Assignment
&=
Bitwise AND/assign
==
Equality
( )
Function call
—
>
Greater than
*
Multiplication
>=
Greater than or equal to
Pointer dereference
>>
Right shift
*=
Multiplication/assign
>>=
Right shift/assignment
+
Addition
[ ]
Array subscript
Unary Plus
^
Exclusive OR
++
Increment1
^=
Exclusive OR/assignment
+=
Addition/assignment
|
Bitwise inclusive OR
–
Subtraction
|=
Bitwise inclusive OR/assignment
Unary negation
||
Logical OR
––
Decrement1
~
One’s complement
–=
Subtraction/assign
delete
–>
Member selection
new
不可重载运算符表:
.
.*
::
Scope resolution
? :
Conditional
#
Preprocessor symbol
##
posted on 2008-09-21 22:04 肥仔 阅读(2021) 评论(0) 编辑 收藏 引用 所属分类: C++ 基础
Powered by: C++博客 Copyright © 肥仔