1 頁 (共 1 頁)

位元運算

發表於 : 2014年 7月 31日, 11:53
davidlan
my link
cc.openhome
AND, OR, NOT , XOR 與補數運算
Bitwise Operator 位元運算子 : & (AND), | (OR), NOT , ^ (XOR) 與 補數運算 (~)
<< (左移運算子) : 左邊被擠出去的會被丟棄。
>> (左移運算子) : 最左邊補上原來的位元
>>> : 最左邊一定補0


Operand : 運算元
Operator : 運算子
Comparison Operator: >, >=, <=, <, ==, !=
Condition Operator: ? (Condition) = (ture return) : (false return)
Logical Operator: &&(AND), ||(OR), !(NOT)

位元運算

發表於 : 2014年 7月 31日, 12:07
davidlan
位元運算通常應用於影像處理與文字編碼等場合