使用宏将int转化成string 发表于 2018-04-20 | 分类于 C/C++ | #define TOSTR2(x) #x #define TOSTR(x) TOSTR2(x) int main(void) { string str; str = TOSTR(10); cout << str << endl; return 0; }