snprintf()函数的用法:
int snprintf(char* dest_str,size_t size,const char* format,…);
该函数作用是将多个字符串组合在一个字符串dest内。
例如:
char buf[4096];
char name[128] = "hpc";
int Chinese = 100;
int English = 100;
int Math = 100;
snprintf(buf, sizeof(buf), "name %s Chinese :%d English :%d Math :%d"
, name, Chinese, English, Math);
最后结果就是“ ”中的内容
-------------------函数使用,自用。。。