#include <iostream> #include <string> #include <sstream> using namespace std; int main() { string a = "123"; stringstream b; b << 123 << "456" << 789 << "-=-="; a += b.str(); // 123123456789-=-= cout << a << endl; return 1; }
标签:std,string,拼接,123,字符串,include From: https://www.cnblogs.com/shiyixirui/p/17489923.html