getline即可
2025-08-09 18:58:57
发布于:江苏
3阅读
0回复
0点赞
这题不能用cin,要用getline
#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
getline(cin,s);
cout << s;
return 0;
}
这里空空如也
2025-08-09 18:58:57
发布于:江苏
这题不能用cin,要用getline
#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
getline(cin,s);
cout << s;
return 0;
}
这里空空如也
提交答案之后,这里将显示提交结果~
有帮助,赞一个