社区讨论
被卡输入了,大佬求调(玄关)
P1308[NOIP 2011 普及组] 统计单词数参与者 3已保存回复 3
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 2 条
- 当前快照
- 1 份
- 快照标识符
- @mjbip5g4
- 此快照首次捕获于
- 2025/12/18 22:10 2 个月前
- 此快照最后确认于
- 2025/12/20 21:40 2 个月前
我想问一下,
CPP#include<bits/stdc++.h>
using namespace std;
const int N=1e7+5;
string a;
char b[N];
int main()
{
cin.getline(b,100005);
cout<<b;
return 0;
}
这样可以输入带空格的字符串b,可是这样
CPP#include<bits/stdc++.h>
using namespace std;
const int N=1e7+5;
string a;
char b[N];
int main()
{
cin>>a;
cin.getline(b,100005);
cout<<b;
return 0;
}
他就输入完a,b输入不进去了?
回复
共 3 条回复,欢迎继续交流。
正在加载回复...