[编程入门]字符串分类统计-题解(C语言代码) 摘要:```c #include #include int main() { char a[1000]; int n; int zimu = 0; //存储字母的整型空间 …… 题解列表 2020年05月15日 0 点赞 0 评论 484 浏览 评分:0.0
[编程入门]字符串分类统计-题解(C语言代码) 摘要:```c #include int main() {char c; int a=0,b=0,e=0,d=0; scanf("%c",&c); while(c!='\n') { if…… 题解列表 2020年05月27日 0 点赞 0 评论 432 浏览 评分:0.0
[编程入门]字符串分类统计-题解(C语言代码) 摘要: #include int main() { char ch; int a=0,b=0,c=0,d=0; while(1) {…… 题解列表 2020年06月11日 0 点赞 0 评论 350 浏览 评分:0.0
[编程入门]字符串分类统计-题解(C++代码) 摘要:解题思路: 运用 #include <ctype.h> 里面的库函数 isdigit(), isspace(),isalpha();注意事项: c++输入一行未知字符串:(对于字符数组) …… 题解列表 2020年06月26日 0 点赞 0 评论 253 浏览 评分:0.0
[编程入门]字符串分类统计-题解(Python代码) 摘要:解题思路:isalpha()方法用来判断字符串中是否只包含字母,并且长度大于0,满足的话就返回True,否则返回False。isdigit()方法用来判断字符串中是否只包含数字,并且长度大于0,满足的…… 题解列表 2020年06月28日 0 点赞 0 评论 410 浏览 评分:0.0
[编程入门]字符串分类统计-题解2(C语言代码) 摘要:解题思路:本题不能用scanf("%s",s)来输入。这样不会读入空格等。(n=getchar())!=EOFC参考代码1(同Python):#include#includeint main() {…… 题解列表 2020年06月28日 0 点赞 0 评论 502 浏览 评分:0.0
[编程入门]字符串分类统计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d; //a是英文字母的个数 b是数字个数 c是空格个数 d是其他字符个数 a=…… 题解列表 2020年10月01日 0 点赞 0 评论 226 浏览 评分:0.0
[编程入门]字符串分类统计-题解(C语言代码) 摘要:解题思路注意事项:参考代码:#include<stdio.h>int main(){ char n; int q=0,w=0,e=0,r=0; while((n=getchar())…… 题解列表 2020年10月11日 0 点赞 0 评论 211 浏览 评分:0.0
[编程入门]字符串分类统计-题解(C语言代码) (简单易懂) 摘要:解题思路:注意事项:输入函数用scanf要注意回车键,要加上getchar()提取回车符。参考代码#include <stdio.h>#include <string.h>int i;int main…… 题解列表 2020年11月26日 0 点赞 0 评论 1086 浏览 评分:0.0
[编程入门]字符串分类统计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char s[100]; int a=0,b=0,c=0,d=0; int i; …… 题解列表 2020年11月29日 0 点赞 0 评论 264 浏览 评分:0.0