0%

Effective Modern C++ 11 笔记

1. 本地调试使用C++相关

strstr strcmp strcpy的头文件在<string.h>中
std::string的头文件在

1
2
3
#include <stdio.h>
#include <string>
#include <string.h>

编译时需要使用如下命令:

1
g++ -lstdc++ <abc.cpp>

选择c++11编译的命令为:

1
g++ -g -Wall -std=c++11 <abc.cpp>