发新话题
打印

急问一函数:整型转字符型?

急问一函数:整型转字符型?

请写明参数,谢谢!      

TOP

man sprintf
int sprintf(char *str, const char *format, ...);

example:

int i,j;
char dststr[100];
sprintf(dststr,"This is a example:%d-%d",i,j);      

TOP

发新话题