C语言程序设计教程(第三版)课后习题6.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include"iostream" using namespace std; int main(){ int sum=2,totle=0,n; cin>>n…… 题解列表 2018年05月30日 0 点赞 0 评论 974 浏览 评分: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 评论 802 浏览 评分: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 评论 944 浏览 评分:0.0
最多约数问题 (C++代码) 摘要:解题思路:首先,考虑如何求解一个数有多少个约数,1的约数只有1个,其他的数字,对其进行质因数分解可以得到 a = b1^c1 * b2^c2 * b3^c3 * ....如下结果,根据排列组合原理可以…… 题解列表 2018年05月30日 11 点赞 1 评论 2060 浏览 评分:6.8
DNA (C语言代码)小学生解法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <stdlib.h>#include <math.h>void DNA(int…… 题解列表 2018年05月30日 0 点赞 0 评论 843 浏览 评分: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 评论 592 浏览 评分:0.0
蛇形填数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int j; int a[100][100] = { 0 …… 题解列表 2018年05月29日 2 点赞 0 评论 1676 浏览 评分:4.4
printf基础练习2 (C语言代码) 摘要:解题思路:使用转换语句注意事项:八进制和十六进制有前缀,如果使用%o,%d,%x,是不会带有前缀的。参考代码:#inlcude <stdio.h>int main(){ int a,b; …… 题解列表 2018年05月29日 0 点赞 0 评论 584 浏览 评分:0.0
小白思路,简单,易理解 摘要:解题思路:小白思路注意事项:参考代码:# include<stdio.h>int main(){ int i,n; double sum=0,sum2=0; double a1 = …… 题解列表 2018年05月29日 0 点赞 0 评论 708 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:将牛分为四类:当年会产出,次年会产出,两年后会产出以及三年后会产出,即设一个数组a[4],第一年四个元素值为1 0 0 0;第二年则有1 0 0 1;第三年则为1 0 1 1;第三年则为1 …… 题解列表 2018年05月29日 0 点赞 0 评论 703 浏览 评分:0.0