vector<type> vecA, vecA.push_back, vecA.erase(vecA.begin() + i).
pair<int , int > pairA, 访问方式 pairA.first, pairA.second
map<typeA, typeB> mapA; mapA.count(typeA) > 0, 说明存在这对键值。 mapA[typeA] = typeB;
stack<type> stackA, stackA.push(), stackA.pop();
//文件操作
#include "fstream"
ofstram 写入
ifstream 读取
fstream myFile;
myFile.open("path", ios_base::in);
if(myFile.is_open()) //判别是否打开
{
//操作
doSomething
myFile.close();
}
int string 转换
string strTmp;
int nTmp;
strTmp = to_string(long long (nTmp));
nTmp = atoi(strTmp.c_str());
string strA = strTmp.substr(其实位置, 截取长度);