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

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

筛选

字符串分类统计C++

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

字符串分类统计

#includeintmain(){chara[200];gets(a);intn1=0,n2=0,n3=0,n4=0;inti=0;for(i=0;a[i]!='\0';i++){if((a[i]>='a'&&a[i]='A'&&a[i]='0'&&a[i]引用文本##插入图片![](/image_

1012题: 字符串分类统计

#自己写的代码```c#include#includeintmain(){chara[100];intb=0,c=0,d=0,e=0;gets(a);intlen=strlen(a);for(inti=0;i='a'&&a[i]='A'&&a[i]='1'&&a[i]

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char str[201];    gets(str);    str……

[编程入门]字符串分类统计

摘要:解题思路:注意事项:参考代码:    #include <stdio.h>    #include <string.h>    /*    输入一行字符,分别统计出其中英文字母、数字、空格和其他字符的……

字符串分类统计

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char str[100];    int i,letter=0,nu……

字符串分类统计---正则表达式

摘要:解题思路: 我使用的正则表达式注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(……

c代码记录之字符串分类统计

摘要:解题思路:注意事项:scanf遇到空格停止读取输入,所以使用gets遍历到\0停止,因为字符串结尾默认\0参考代码:#include<stdio.h> int main() {     char……