getline.
```cpp
#include <bits/stdc++.h>
using namespace std;
string s;
int main()
{
getline(cin,s);
cout<<s;
return 0;
}
```
by IOI_AK_TLR @ 2023-10-19 11:12:46
额不对,您这是C语言吗
by IOI_AK_TLR @ 2023-10-19 11:13:31
cin会忽略空格然后一个单词一个单词输入......
很有意思的东西
by Atlantic_C929 @ 2023-10-20 17:23:12