题解 | #字符串拼接#
字符串拼接
http://www.nowcoder.com/practice/167be62a4f66497dbf318617cd14f57d
stirng 流的操作
#include <string>
#include <sstream>
using namespace std;
int main() {
string s1, s2;
getline(cin, s1);
getline(cin, s2);
// write your code here......
ostringstream os;
os << s1 << s2 << endl;
cout << os.str();
return 0;
}