为了以' sprintf '的方式格式化 std :: string ,调用 snprintf (参数 nullptr 和0)来获得需要的缓冲区的长度。 用C ++ 11 variadic模板编写你的函数,像这样:
確定! 回上一頁