字符串读入空格

· · 个人记录

#include<bits/stdc++.h>
using namespace std;
int main(){
    string s;
    getline(cin,s);
    cout<<s;
    return 0;
}