Mac上使用C++11编译

只需要加上参数 -std=c++1

1 g++ -std=c++11 main.cpp
原文地址:https://www.cnblogs.com/--lr/p/14006493.html