Effective Modern C++ 11 笔记 发表于 2018-09-02 更新于 2024-04-16 分类于 debug Valine: 1. 本地调试使用C++相关strstr strcmp strcpy的头文件在<string.h>中std::string的头文件在中 123#include <stdio.h>#include <string>#include <string.h> 编译时需要使用如下命令: 1g++ -lstdc++ <abc.cpp> 选择c++11编译的命令为: 1g++ -g -Wall -std=c++11 <abc.cpp>