C++中带空格的字符串输入

#include<iostream> using namespace std; int main() { string str; getline(cin,str); cout<<str; return 0; } 利用getline函数
相关文章
相关标签/搜索