[编程入门]自定义函数之数字分离 c语言 递归求解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void separate(int n){ int temp=n%10; n/=10; if(n)separate(…… 题解列表 2022年12月07日 0 点赞 0 评论 499 浏览 评分:9.0
一种超简单的方法 摘要:#include int main() { double n,m; scanf("%lf",&n); if(n…… 题解列表 2022年12月06日 0 点赞 0 评论 637 浏览 评分:9.9
纸张尺寸C语言 摘要:解题思路:注意事项:ASCII码的使用。参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int length[10][2]; int…… 题解列表 2022年12月06日 0 点赞 0 评论 736 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun1(int r,int c){ int a=1; for(int i=0;i<c;i++) { …… 题解列表 2022年12月06日 0 点赞 0 评论 541 浏览 评分:0.0
那位大佬能帮我看一下哪里错了吗,为啥我在devc++上可以运行,答案还对了,然后复制来这就不对了,想哭了! 摘要:解题思路:那位大佬能帮我看一下哪里错了吗,为啥我在devc++上可以运行,答案还对了,然后复制来这就不对了,想哭了!注意事项:参考代码:#include<stdio.h>int main(){ int…… 题解列表 2022年12月06日 0 点赞 1 评论 398 浏览 评分:0.0
自定义函数之整数处理 解题思路:1.提前自定义最大值函数,最小值函数2.利用for循环依次比较10个数,选出最小值并用j记录位置,将arr[0]与arr[j]互换其值3.同样利用上述思想实现arr[9]与最大值互换注意事项:在查找的过程中仅做查找,不做值的交换(与冒泡排序有区别)参考代码:#include 题解列表 2022年12月06日 0 点赞 0 评论 516 浏览 评分:0.0
结构体与时间设计C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Date{ int year; int mouth; int day;}data;int main(){ int i=0;…… 题解列表 2022年12月06日 0 点赞 0 评论 497 浏览 评分:0.0
C语言简便易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,s=0; scanf("%d",&n); while(n!=0) …… 题解列表 2022年12月05日 0 点赞 2 评论 1183 浏览 评分:9.9
金币超简单 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n, i, j, k = 0, s = 0; scanf("%d", &n); fo…… 题解列表 2022年12月05日 0 点赞 0 评论 794 浏览 评分:9.9