题解 1094: 字符串的输入输出处理

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

使用stringstream求解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;vector<string>kk;int main(){ int N; strin……

字符串的输入输出处理 (C++代码)

摘要:解题思路:虽然一遍就过,但还是觉得这个题目有点叙述不清楚,反正设置一个计数器cnt,计算输入字符串的数量,超过N的便采取特殊处理,还有,输入n之后记得getchar(),其他的没什么了。注意事项:参考……

字符串的输入输出处理

摘要:#include #include#includeusing namespace std; int main() {     int n;char str[1000];    cin>>n……

字符串的处理方法

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string.h>using namespace std;int main() { int n; scanf("……

使用getline求解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;vector<string>kk;int main(){ int N; strin……