[编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]…… 题解列表 2025年11月27日 0 点赞 0 评论 55 浏览 评分:0.0
自定义函数关于字符串的问题c语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>voidf(chara[],int*w,int*n,int*s,…… 题解列表 2025年11月29日 0 点赞 0 评论 58 浏览 评分:0.0
WU-C语言程序设计教程(第三版)课后习题8.9 (C语言代码) 摘要:#include<stdio.h> void count(char *p,int *a,int *b,int *c,int *d) { int i; for(i=0;p[i]!='…… 题解列表 2017年12月06日 3 点赞 0 评论 1386 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题8.9 (C++代码)(其实不需要开数组,一个一个字符读入并判断就好了) 摘要:解题思路:其实不需要开数组,一个一个字符读入并判断就好了注意事项:结束不是'\0',也不是'\n',而是'EOF',即文件结束参考代码:#include…… 题解列表 2017年08月03日 10 点赞 8 评论 1292 浏览 评分:4.0
[编程入门]自定义函数之字符类型统计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void fun(char a[100]){int i,j=0,k=0,l,m=0,n=0;l=st…… 题解列表 2021年02月07日 0 点赞 0 评论 478 浏览 评分:4.0
C语言程序设计教程(第三版)课后习题8.9 (C语言代码) 摘要:注意 存储字符串的数组 要定义得大一些,否则 可能会提示 运行错误。…… 题解列表 2017年06月25日 3 点赞 2 评论 858 浏览 评分:6.0
C语言程序设计教程(第三版)课后习题8.9 (C++代码) 摘要:参考代码:#include <iostream> #include <string> #include <cctype> using std::cin; using std::cout; u…… 题解列表 2017年08月04日 0 点赞 1 评论 1394 浏览 评分:6.0
C语言程序设计教程(第三版)课后习题8.9 (C++代码) 摘要:解题思路:在自定义函数中用到if语句的多分支嵌套结构,分四种情况统计字符串中字母、数字、空格和其他字符的个数注意事项:自定义函数sort()中,形参_a,b,c,d应按地址传递,即应加上‘&’参考代码…… 题解列表 2018年06月09日 0 点赞 0 评论 1345 浏览 评分:6.0
[编程入门]自定义函数之字符类型统计-题解(C语言代码) 摘要: ```c #include int main() { char str[100]; int zm = 0,number=0,kongge=0,zhifu=0,i=0; …… 题解列表 2020年03月04日 0 点赞 1 评论 722 浏览 评分:6.0
[编程入门]自定义函数之字符类型统计-题解(C语言与C++代码) 摘要:c语言版 ```c #include #include void total(char a[],int *b,int *c,int *d,int *e) { while(*a) …… 题解列表 2020年04月07日 0 点赞 0 评论 579 浏览 评分:6.0