1.常用格式。
#include<cstdio>
#include<iostream>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<cctype>
#include<string>
#include<algorithm>
#include<stack>
#include<queue>
#include<set>
#include<map>
#include<ctime>
#include<vector>
#include<fstream>
using namespace std;
int main()
{
freopen("E:\\data.txt","r",stdin);
ios::sync_with_stdio(false);
printf("%.3f seconds\n",(double)clock()/CLOCKS_PER_SEC);
return 0;
}
2.isalpha() isdigit() toupper() tolower()
3.fgets(arr,sizeof(arr),stdin);
4.字符数字-48 等于 数字。
5.ascii码表:
6.queue test:push() pop() front() back() size();
7.stack test:push() pop() top() size();