C++ 按行输入

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

 

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