大侠们在不 进来帮小弟我瞧瞧 哪里错了
老说第6步错了。。。。我看了好几遍。。。感觉没错啊!!!路过的大侠帮我看看错误报告在下面...
#include<iostream>
using namespace std;
int main();
{
bool bTrue=true;
bool bFalse=false;
cout<<"True+True="<<bool(bTrue+bTrue)<<endl;
cout<<"True+False="<<bool(bTrue+bFalse)<<endl;
cout<<"False+False="<<bool(bFalse+bFalse)<<endl;
cout<<"True*True="<<bool(bTrue*bTrue)<<endl;
cout<<"True*False="<<bool(bTrue*bFalse)<<endl;
cout<<"False*Faslse="<<bool(bFalse*bFalse)<<endl;
cin.get();
return 0;
}
错误报告;
--------------------Configuration: 789 - Win32 Debug--------------------
Compiling...
main.cpp
E:\C++\MSDev98\MyProjects\789\main.cpp(6) : error C2447: missing function header (old-style formal list?)
执行 cl.exe 时出错.
789.exe - 1 error(s), 0 warning(s)