sprintf函數:
頭文件:stdio.h
函數原型:int sprintf( char *buffer, const char *format [, argument] … );
返回值:字符串長度(strlen)
例如:
unsigned _int64 t=1;
char temp[15];
for(int i=4;i<=42;++i)
{
sprintf(temp,"%llu",t<<i);
}
關於64為的整數可以看下面的解釋(從百度空間里拷來的,寫的很明白,原文可參考下面的連接):