递归算法..................... 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int index=0,circle[100000],m[1000000];void factorial(int a,int j){ …… 题解列表 2024年07月31日 17 点赞 0 评论 3147 浏览 评分:9.7
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 如果你看不懂这里的其他题解 点击我 摘要:题目分析 本题主要是训练结构体的创建 声明用法代码#include<stdio.h> leapyear(int a)//判断是否为闰年 { int b; if((a%4==0…… 题解列表 2017年06月13日 19 点赞 8 评论 3129 浏览 评分:9.8
不需要数组和指针的做法!!! 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ char c; while((c=getchar())!='\n'&&c!=-1)…… 题解列表 2017年07月25日 5 点赞 6 评论 1675 浏览 评分:9.8
C语言训练-委派任务* (C语言代码)..................竟然是第一个 摘要:解题思路:记0为不去,1为去,6个for就是全部情况列举,2*2*2*2*2*2,1)A和B两人中至少去一人; 2)A和D不能一起去; 3)A、E和F三人中要派两人去; 4)B和C都去或都不去; 5)…… 题解列表 2017年08月09日 9 点赞 8 评论 2764 浏览 评分:9.8
C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m,temp,x,y,a; scanf("%d%d",&m,&n); if(m<n…… 题解列表 2017年08月12日 1 点赞 3 评论 2943 浏览 评分:9.8
C语言程序设计教程(第三版)课后习题8.9 (C语言代码) 用函数传参的方法 摘要:解题思路:注意事项:输入字符串用gets()传参要将指针传进函数参考代码:#include<stdio.h>#include <string.h>#include <stdlib.h>void jis…… 题解列表 2017年08月18日 16 点赞 2 评论 5023 浏览 评分:9.8
回文数字 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c,n,flag=1; scanf("%d",&n); for(a=1;a<10…… 题解列表 2017年10月16日 20 点赞 12 评论 3445 浏览 评分:9.8
C语言程序设计教程(第三版)课后习题10.7 (C语言代码) 摘要:#include <stdio.h> #define LEN 100 void Copy(char a[], char b[], int n, int m); int main(void) {…… 题解列表 2017年12月14日 90 点赞 11 评论 5199 浏览 评分:9.8
奖学金 (C语言代码) 摘要:解题思路: 结构体+快速排序参考代码:#include <stdio.h> #include <stdlib.h> struct stu { int num;//学号 int a,…… 题解列表 2017年11月27日 6 点赞 8 评论 2532 浏览 评分:9.8
WU-C语言程序设计教程(第三版)课后习题8.2 (C语言代码) 摘要:#include<stdio.h> #include<math.h> void solve1(double a,double b,double c) { printf("x1=%.3lf "…… 题解列表 2017年12月04日 7 点赞 12 评论 4367 浏览 评分:9.8