在我的代碼(嚴格的C,不C++),我使用vsnprintf這樣: char* buf = NULL; size_t sz; sz = vsnprintf(buf, 0, format, args); // Ask vsnprintf how big a buffer we ...
確定! 回上一頁