在我的代碼(嚴格的C,而不是C ++)中,我用這種方式使用vsnprintf: char* buf = NULL; size_t sz; sz = vsnprintf( buf, 0, format, args); // Ask ...
確定! 回上一頁