//poj3062 不知道怎么有这种水题 #include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string a; getline(cin, a); while(!cin.eof()) { cout<<a<<endl; getline(cin, a); } //system("pause"); return 0; }
//poj3062 不知道怎么有这种水题 #include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string a; getline(cin, a); while(!cin.eof()) { cout<<a<<endl; getline(cin, a); } //system("pause"); return 0; }