引力传媒为什么停牌:c#中,或 与怎么表示?就象vb中的 aa=1 and bb=2
来源:百度文库 编辑:神马品牌网 时间:2024/10/06 09:01:41
c#中,或 与怎么表示?就象vb中的 aa=1 and bb=2
aa=1 or bb=2
aa=1 or bb=2
用&表示与运算
比如 a=6&3;
则 a=2;
110
and 011
------------
010
用|表示或运算
比如 a=6|3;
则 a=7
110
or 011
------------
111