题解 1012: [编程入门]字符串分类统计

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

筛选

在哪你都看得到我记住这句话

摘要:解题思路:这道题的思路是因为用ASCII解决,因为在ASCII表里数字在一个范围字母在一个范围,剩下的就是其他。所以我们只需要遍历一下这个字符串记录一下每个范围的值有多少就解决了参考代码:#inclu……

字符串分类统计C++

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){char a[200];cin.get……

c++编写字符串分类统计

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(void){ int num=0,space=0,word=0,other=……

字符串分类统计C++

摘要:解题思路:采用for循环输入,用gets而不用cin可以 输入空格注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ in……

字符串分类统计--个人题解

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