数字的顺序,逆序输出 摘要:解题思路:使用strlen()函数,循环注意事项:使用该函数包含string.h的头文件参考代码:#include<stdio.h>#include<string.h> //注意使用该头文件int m…… 题解列表 2024年10月30日 1 点赞 0 评论 317 浏览 评分:9.9
自定义函数之字符提取 摘要:解题思路:用s[ ]和t[ ]对比注意事项:s[ ]的大小参考代码:#include<stdio.h>int main(){ char s[100],t[6]="aeiou"; int i,c; fo…… 题解列表 2024年10月31日 0 点赞 0 评论 224 浏览 评分:9.9
1635: 蓝桥杯算法训练VIP-整数平均值(简单解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int add(int n) //定义函数add{ int *p,a[100]={0},i,sum=0; //定义指针…… 题解列表 2024年10月31日 2 点赞 0 评论 688 浏览 评分:9.9
个人认为较为简单的数字分离,仅供参考! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fen(int a){ int b,c,d,e; b=a/1000; //得到千位数 c=a/1…… 题解列表 2024年10月31日 2 点赞 0 评论 633 浏览 评分:9.9
定义三个函数对整数处理(指针做法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 10void input(int* arr,int n); //输入函数,将十个数输入存…… 题解列表 2024年10月31日 0 点赞 0 评论 217 浏览 评分:9.9
2841: 大整数加法(超详细解答) 摘要:解题思路:写了很久,要注意前导0和十进制的运算注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[201]={&#…… 题解列表 2024年10月31日 0 点赞 0 评论 495 浏览 评分:9.9
if语句菜鸟驿站写法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if(n%2==0){ printf("even"); }…… 题解列表 2024年11月01日 0 点赞 0 评论 341 浏览 评分:9.9
题解 3000: 交换值 摘要:解题思路:简单一点注意事项:参考代码: int a,b; scanf("%d %d",&a,&b); printf("%d %d",b,a); return 0;…… 题解列表 2024年11月01日 0 点赞 0 评论 522 浏览 评分:9.9
2839: 石头剪刀布 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int na,nb,n,i; int a1=0,b1=0;//记…… 题解列表 2024年11月01日 0 点赞 3 评论 185 浏览 评分:9.9
新手必看,苹果和虫子 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,x,y; scanf("%d %d %d",&n,&x,&y); int e=y/x; i…… 题解列表 2024年11月01日 0 点赞 0 评论 281 浏览 评分:9.9