1、整型
short
unsigned short
int %d -2147483648~2147483647
unsigned %u
long
unsigned long
long long %lld
unsigned long long %llu
二、浮点型
float %f
double %lf
long double
取n位小数:%.nlf
删除末尾多余0:%g
科学计数法:%e
3、字符型
char %c
4、bool型
bool
5、字符串
char xx [] %s
string(C++专用,只有cin/cout)
6、结构体
struct xx{
};