LinuxÒÁµéÔ°ÂÛ̳'s Archiver

minton ·¢±íÓÚ 2003-3-3 11:41

¼±ÎÊÒ»º¯Êý£ºÕûÐÍת×Ö·ûÐÍ£¿

ÇëдÃ÷²ÎÊý£¬Ð»Ð»£¡

ykwj121 ·¢±íÓÚ 2003-3-3 12:59

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);

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.