int c=a^b<<2; // b<<2=3; 然后a的3次,你说等于几??
注意风格,如果不知道优先,可以用括号啊!!!强烈推荐用括号
拷下来编译后提示如下错误是怎么回事啊?
--------------------Configuration: guaiquti - Win32 Debug--------------------
Compiling...
guaiquti.cpp
E:\c++程序设计\guaiquti.cpp(2) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(2) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(3) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(3) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(4) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(4) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(4) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(4) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(5) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(5) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(5) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(5) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(6) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(6) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(6) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(6) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(7) : error C2018: unknown character '0xa1'
E:\c++程序设计\guaiquti.cpp(7) : error C2018: unknown character '0xa1'
执行 cl.exe 时出错.
guaiquti.obj - 1 error(s), 0 warning(s)