的話,會產生buffer overflow 的問題。而如果改成用snprinf() 的話,就是變成:. int tmp = 10000; char cstr[20]; snprintf( cstr, sizeof( cstr ), "%d * %d = %d", ...
確定! 回上一頁