C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<math.h>int A(int a);void B(int a,int count);void C(int a,i…… 题解列表 2018年05月30日 0 点赞 0 评论 1454 浏览 评分:0.0
数据结构-迪杰斯特拉最短路径算法 (C语言代码)-------------C语言——菜鸟级 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> #define N 60 int dis[N]; int gxb[N][N]; int…… 题解列表 2018年05月30日 6 点赞 0 评论 2473 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题6.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include"iostream" using namespace std; int main(){ int sum=2,totle=0,n; cin>>n…… 题解列表 2018年05月30日 0 点赞 0 评论 1683 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include"iostream" using namespace std; int main(){ int a,b; cin>>a>>b; for(i…… 题解列表 2018年05月30日 0 点赞 0 评论 1446 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ char ch; int a=0,b=0,c=0,d=0; while( scanf("%c",…… 题解列表 2018年05月30日 0 点赞 0 评论 1726 浏览 评分:0.0
最多约数问题 (C++代码) 解题思路:首先,考虑如何求解一个数有多少个约数,1的约数只有1个,其他的数字,对其进行质因数分解可以得到a=b1^c1*b2^c2*b3^c3*....如下结果,根据排列组合原理可以得到其约数个数为(c1+1)*(c2+1)*(c3+1)*....而对于一个数质因数分解的效率, 题解列表 2018年05月30日 11 点赞 1 评论 2382 浏览 评分:6.8
DNA (C语言代码)小学生解法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <stdlib.h>#include <math.h>void DNA(int…… 题解列表 2018年05月30日 0 点赞 0 评论 1262 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.4 (C语言代码) 摘要:解题思路:注意事项:构造一个新数组来做“中转站”参考代码:#include<stdio.h> void backLetter(int a[],int n,int m) { int b[n]; …… 题解列表 2018年05月30日 1 点赞 0 评论 1167 浏览 评分:0.0
蛇形填数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int j; int a[100][100] = { 0 …… 题解列表 2018年05月29日 2 点赞 0 评论 2124 浏览 评分:4.4
printf基础练习2 (C语言代码) 摘要:解题思路:使用转换语句注意事项:八进制和十六进制有前缀,如果使用%o,%d,%x,是不会带有前缀的。参考代码:#inlcude <stdio.h>int main(){ int a,b; …… 题解列表 2018年05月29日 0 点赞 0 评论 989 浏览 评分:0.0