#include <sstream> #include <iomanip> using namespace std; ... stringstream buffer; int i = 20; buffer << setw(4) << i; string v = buffer.str(); // // v now ...
確定! 回上一頁