摘要: 推荐使用C++标准库作法:#include <iostream>#include <string>#include <sstream>using namespace std;int main(){ int a = 2; string b = "abc"; stringstream ss; ss << a << b; cout << ss.str() << endl; return 0;} 阅读全文
posted @ 2013-06-15 22:38 盗草人 阅读(557) 评论(0) 推荐(0) 编辑