#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main(){
int a = 1, b = 2;
string sa,sb;
stringstream ss;
ss << a;
ss >> sa;
ss << b;
ss >> sb;
cout << sa << endl;
cout << sb << endl; // 问题:为什么这边印不出 2
// 如图:http://codepad.org/11j38BHP
return 0;
}