#include<iostream> suing namespace std; int main() { cout<<"Hello.c++!"; cin.get; return 0; } f:\woaini\main.cpp(2) : error C2143: syntax error : missing ';' before 'namespace' f:\woaini\main.cpp(2) : error C2501: 'suing' : missing storage-class or type specifiers f:\woaini\main.cpp(2) : error C2059: syntax error : ';' f:\woaini\main.cpp(5) : error C2065: 'cout' : undeclared identifier f:\woaini\main.cpp(5) : error C2297: '<<' : illegal, right operand has type 'char [11]' f:\woaini\main.cpp(6) : error C2065: 'cin' : undeclared identifier f:\woaini\main.cpp(6) : error C2228: left of '.get' must have class/struct/union type Error executing cl.exe. woaini.exe - 7 error(s), 0 warning(s)
2 回答
慕桂英4014372
TA贡献1871条经验 获得超13个赞
#include<iostream> using namespace std; int main() { cout<<"Hello.c++!"; cin.get(); return 0; }
- 2 回答
- 0 关注
- 121 浏览
添加回答
举报
0/150
提交
取消