如下内容,在c++运行出现了严重的错误,这是为什么呢?请问该怎么修改?

#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)

largeQ
浏览 170回答 2
2回答

慕桂英4014372

#include<iostream> using namespace std; int main() { cout<<"Hello.c++!"; cin.get(); return 0; }

红颜莎娜

suing namespace std; --》using namespace std;
打开App,查看更多内容
随时随地看视频慕课网APP