[C++ Primer] 练习3.5
2017-02-28 本文已影响0人
和平北路
#include <iostream>
#include <string>
using std::string;
using std::cout;
using std::cin;
using std::endl;
int main() {
string current;
string result;
while (cin >> current) {
result += current + " ";
cout << result << endl;
}
}