看这个程序:
#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;
while(true){
getline(cin,str);
cout<<str;
}
return 0;
}