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 程序
相關文章
相關標籤/搜索