题解 1035: [编程入门]自定义函数之字符类型统计 摘要: #include #include void turn(char str[]) { int alp=0,num=0,spa=0,…… 题解列表 2021年07月02日 0 点赞 0 评论 392 浏览 评分:9.9
[编程入门]自定义函数之字符类型统计 AC代码 摘要:```cpp #include using namespace std; int get_letter_num(string s_1) { int j = 0; for (int i…… 题解列表 2021年08月18日 0 点赞 0 评论 539 浏览 评分:9.9
简单的字符串操作 摘要:解题思路:无。注意事项:1.注意 \n 的引入与否,这里将 \n 也作为输入终止2.因为考虑到串长是一个容易获得且应该具备的属性,故添加了串长。参考代码:int *data(char *,int);i…… 题解列表 2021年09月03日 0 点赞 0 评论 329 浏览 评分:9.9
题解 1035: [编程入门]自定义函数之字符类型统计 摘要:参考代码:#include<stdio.h>#include<string.h>void sta_sting(char *str); //字符统计函数void main(){ char s…… 题解列表 2021年10月20日 0 点赞 0 评论 664 浏览 评分:9.9
自定义函数之字符类型统计解题方法 摘要:解题思路:因为题目中要求包含多种类型字符,所以我们引用cypet库来判断字符,然后用while语句结合if 来进行判断,最后计算字符量输出注意事项:记住,在循环时候,要按照判断digit ,blank…… 题解列表 2021年12月03日 0 点赞 0 评论 370 浏览 评分:9.9
编写题解 1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ void p(char s[]); char a[100]; gets(a)…… 题解列表 2021年12月10日 0 点赞 0 评论 315 浏览 评分:9.9
[编程入门]自定义函数之字符类型统计 摘要:解题思路:因为有四种类型的字符需要统计,所以我们可以建立四个累加器来计算,同时运用for语句扫遍字符串,用if语句判断四种类型(islower(s[i])||isupper(s[i]),isdigit…… 题解列表 2022年05月08日 0 点赞 0 评论 395 浏览 评分:9.9
[C语言][编程入门]自定义函数之字符类型统计 摘要:void sta(char*a) { int cnt,cnt1=0,cnt2=0,cnt3=0,cnt4=0; for(cnt=0;cnt<strlen(a);cnt++) { i…… 题解列表 2022年05月19日 0 点赞 0 评论 287 浏览 评分:9.9
简单易懂,暴力开解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int sum1=0,sum2=0,sum3=0,sum4=0,i; …… 题解列表 2022年06月21日 0 点赞 0 评论 375 浏览 评分:9.9
1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:简单来说,就是判断。注意事项:无参考代码:#include<bits/stdc++.h> using namespace std; #define max 1000 void prin…… 题解列表 2022年06月25日 0 点赞 0 评论 305 浏览 评分:9.9