【发布时间】:2018-02-06 01:29:01
【问题描述】:
我已经安装了 devc++ 并编写了一个基本的 hello world 程序
#include<stdio.h>
int main
{
cout<<"hello";
return 0;
}
这是我的跑步。但是在运行代码时出现以下错误
3 1 D:\cpp\helloworld.cpp [Warning] extended initializer lists only
available with -std=c++11 or -std=gnu++11
4 4 D:\cpp\helloworld.cpp [Error] 'cout' was not declared in this scope
5 4 D:\cpp\helloworld.cpp [Error] expected unqualified-id before
'return'
6 1 D:\cpp\helloworld.cpp [Error] expected declaration before '}' token
请有人帮忙!
【问题讨论】:
-
合并排序的哪一部分?
-
你没有为
main声明参数。 -
那里有这么多的hello world程序......怎么可能仍然做错呢?恐怕downvote按钮的工具提示文本适用于您的情况。
-
@trincot 问题可能出在我的 dev c++ 设置上,这就是我希望你调试的。
-
代码无效,与你的IDE无关。