#include <iostream>
#include <string>
using namespace std;
int main(){
string str;
while(true){
getline(cin,str);
cout<<str;
}
return 0;
}
什么开发环境啊......
#include <iostream>
#include <string>
using namespace std;
int main(){
string str,str1;
while(true){
getline(cin,str);
str1+=str;
cout<<str1<<endl;
}
return 0;
}