开发者社区> 问答> 正文

eclipse 开发c++ 报错 ?报错

环境 ubuntu 14,,jdk8,eclipse4。4

下面代码报这个异常 Symbol 'array' could not be resolved  请问怎么做

#include <iostream>
#include <array>
using namespace std;


int main() {
std::array<int , 5> a = new array{1,2,3,4,5};
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}


展开
收起
爱吃鱼的程序员 2020-06-14 16:43:13 491 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    这个是c++11支持的,请确认PathsandSymbols配置正确

    2020-06-14 16:43:30
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
使用C++11开发PHP7扩展 立即下载
GPON Class C++ SFP O;T Transce 立即下载
GPON Class C++ SFP OLT Transce 立即下载

相关镜像