sprintf();
#include <stdio.h>
void
put_int_with_space(
int
v)
{
char
str[50];
//定義一個足夠大的數組。
int
i;
sprintf
(str,
"%d"
, v);
//將v轉為字符串。
}