gcc4.8.5支持C++11

GCC4.8.5默认支持C++98,若程序中使用到C++11的特性,则报错。c++ 解决方案:c++11 编译时加上-std=c++11便可,如编译 g++ -std=c++11 dijkstra.cpp -o dijkstra 程序
相关文章
相关标签/搜索