我换成英文版的,但我做2.5时输入
#include <iostream.h>
int main(void)
{
bool b:
bool a;
cin>>a;
cin>>b;
cout<<"!a="<<!a<<endl;
cout<<"a&&b"<<(a&&b)<<endl;
cout<<"a||b"<<(a||b)<<endl;
return 0;
}
出--------------------Configuration: test - Win32 Debug--------------------
Compiling...
test.cpp
d:\代码\test\test.cpp(13) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
test.exe - 1 error(s), 0 warning(s) |