C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* 递归实现 */ #include<stdio.h> int get_gys(int a,int b) { if(a%b == 0) …… 题解列表 2017年10月26日 1 点赞 0 评论 830 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:先求出位数,由位数来定数组的个数,再对数组进行赋值(用数组做此题,只要是int范围内的数都可以成功输出)注意事项:输入数据n的各个位数的用循环语句进行赋值到数组里面,还有注意第二行最后没有空…… 题解列表 2017年10月26日 0 点赞 0 评论 1227 浏览 评分:0.0
最好的, 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,j,a[3][3],sum1=0,sum2=0; for(i=0;i<3;i++) { for(…… 题解列表 2017年10月26日 0 点赞 0 评论 885 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* 最大公约数与最小公倍数 */ #include<stdio.h> int get_gys(int a,int b) { int i; …… 题解列表 2017年10月26日 2 点赞 1 评论 968 浏览 评分:0.0
数列排序 (C语言代码) 摘要:#include <stdio.h> int main() { int n,nums[9],i,o; scanf("%d",&n); for (i=1;i<=n;i++) { …… 题解列表 2017年10月26日 0 点赞 0 评论 1084 浏览 评分:0.0
C语言训练-8除不尽的数 (C语言代码) 摘要:#include<stdio.h> int main() { int x = 0; while(1) { if (x%8==1 && x/8%8…… 题解列表 2017年10月26日 5 点赞 0 评论 1654 浏览 评分:9.0
C语言程序设计教程(第三版)课后习题7.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* 逆序输出 */ #include<stdio.h> #define N 10 void func(int arr[]) { int i; …… 题解列表 2017年10月26日 0 点赞 0 评论 990 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题7.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* 插入有序数组 */ #include<stdio.h> void ins(int *arr,int k) { int i,j; for…… 题解列表 2017年10月26日 0 点赞 0 评论 1070 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.3 (C语言代码) 摘要:解题思路:一步到位注意事项:=-=||!参考代码:/* 主对角线 副对角线 元素和 */ #include<stdio.h> #define N 3 void func(int arr[]…… 题解列表 2017年10月26日 0 点赞 0 评论 749 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.2 (C语言代码) 摘要:解题思路:感觉这样模块化会好一些~注意事项:注意指针的使用参考代码:/* 选择排序 */ #include<stdio.h> void swap(int *a,int *b); void s…… 题解列表 2017年10月26日 4 点赞 0 评论 948 浏览 评分:0.0