加上: -std=c++11 例如: g++ test.cpp -o test -std=c++11 转载于:https://www.cnblogs.com/lxc1910/p/11155903.html