#include
#include
using namespace std;
#include
cout<
scanf("(%d,%d)",&a,&b); 输入
#include
strlen(a) 字符数组长度
gets(a) 输入字符数组
cout< cout< a.erase(1, 3); 从位置1开始删除3个
a.copy(b,5); 字符串a传5位给字符数组b
a.find(i,0) 从0开始字符串a中字符串i的首位置
a.insert(2,"sa"); 在字符串a的第二个字符后插入sa
a.substr(1,4) 从字符串a的第2个字符开始截取4个
cin.getline(字符指针(char*),字符个数N(int),结束符(char));
strcmp(q,w); 比大小,q,w为字符指针,若q所指向的字符数组大,返回正值
#include
reverse(a.begin(),a.end()); 反转字符串a(可让a.begin()或a.end()加减控制反转范围)
sqrt(a) 开根号
#include
#include
srand(time(0)); rand() 随机数
system("cls") 清屏
system("pause"); 任意键继续
operator 重载
Rational(const Rational &a) 拷贝构造函数
Sleep(1000); 停顿1000毫秒
#include
ofstream fout("cdm.txt",ios::out);
fout<
fin>>day>>h 读档
MessageBox(NULL,"内容","标题",MB_OK); 弹窗
unordered_map
int** c = (int**)malloc(sizeof(int *)*(n+1));
for(int i=0;i<=n;i++)
c[i] = (int *)malloc(sizeof(int)*(W+1)); 动态分配二维数组空间
stack
push() top() pop() empty() size() 栈
vector
a.push_back(x) 插入
a.erase(a.begin()) 删掉第一个



