c++中如何读取一行带有空格的字符串

getline(cin,s);

要包含#include <iostream> #include <cstring>

posted @ 2023-11-15 22:33  我的秘密小屋  阅读(16)  评论(0编辑  收藏  举报