运维经–目录 ‘nullptr’ was not declared in this scope 因为nullptr是c++11新特性,所以编译时需要添加编译参数。 g++ test.cpp -std=c++11