注册 登录
编程论坛 C++教室

[求助]关于一些运算符的意义

ljhwahaha 发布于 2007-04-11 23:41, 718 次点击

想问一下下面这些运算符分别代表什么呢??虽然在MSDN里都能查到,但由于是英文所以看不明,谢谢了`
<<=
Shift the value of the first operand left the number of bits specified by the value of the second operand; store the result in the object specified by the first operand.

>>=
Shift the value of the first operand right the number of bits specified by the value of the second operand; store the result in the object specified by the first operand.

&=
Obtain the bitwise AND of the first and second operands; store the result in the object specified by the first operand.

^=
Obtain the bitwise exclusive OR of the first and second operands; store the result in the object specified by the first operand.

|=

Obtain the bitwise inclusive OR of the first and second operands; store the result in the object specified by the first operand.

1 回复
#2
aipb20072007-04-12 10:48
都是复合运算符号。 operator=就跟+=含义一样,这个该明白吧!

<< 左移位操作符
>> 右移位操作符

& 与操作符
^ 异或操作符
| 或操作符


都是针对2进制数集的!
1