输入带空格的string类型字符串 c++

string str1;

getline(cin,str1);

原文地址:https://www.cnblogs.com/wbb2109/p/2694163.html