C++ 按行输入

string s;
while(getline(cin,s)){
    cout<<s<<endl;
}

 

posted @ 2021-04-03 19:13  Kinghao0319  阅读(263)  评论(0)    收藏  举报