[编程入门]迭代法求平方根-题解(C语言代码) 摘要:解题思路:迭代法求平方根注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x1,x2; double a; …… 题解列表 2020年11月15日 0 点赞 0 评论 605 浏览 评分:0.0
数据结构-二叉链表存储的二叉树-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#define stype chartypedef struct node{ struct node…… 题解列表 2020年11月15日 1 点赞 0 评论 1044 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(C语言代码) 摘要:解题思路:自己敲一遍就理解了。注意事项:没什么注意的。参考代码:#include <stdio.h>int main(){ int sum=0,i,b,a=0; sca…… 题解列表 2020年11月15日 0 点赞 0 评论 491 浏览 评分:0.0
[编程入门]求和训练-题解(C语言代码) 摘要:解题思路:分别求出三种之和,再相加。注意事项:注意pow函数的使用。参考代码:#include <stdio.h>#include <math.h>int main(){ int a,…… 题解列表 2020年11月15日 0 点赞 0 评论 1445 浏览 评分:0.0
数列排序-题解(C语言代码) 摘要: #include #include #include using namespace std; int main(int argc, char const *argv[]) {…… 题解列表 2020年11月15日 0 点赞 0 评论 686 浏览 评分:0.0
[编程入门]利润计算-题解(C语言代码) 摘要:解题思路:小学生都能看懂就不解释了。注意事项:注意区间和提成。参考代码:#include<stdio.h>int main(){ int x,y;scanf("%d",&y);if(y<=100000…… 题解列表 2020年11月15日 0 点赞 0 评论 1314 浏览 评分:0.0
[编程入门]有规律的数列求和-题解(C语言代码) 摘要:解题思路:找出规律就能写。注意事项:x,y不能用int型。不然输出不了。参考代码:#include <stdio.h>int main(){ int i,n,c; float x=1,y=2,sum=…… 题解列表 2020年11月15日 0 点赞 0 评论 852 浏览 评分:0.0
[编程入门]自定义函数处理最大公约数与最小公倍数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:/*写两个函数,分别求两个整数的最大公约数和最小公倍数,用主函数调用这两个函数,并输出结果两个整数由键盘输入。输入两个数输出最大公约数 最小公倍数样例输入6 15样例输出…… 题解列表 2020年11月16日 0 点赞 0 评论 722 浏览 评分:0.0
[亲和数]-题解(C语言代码) 摘要:解题思路:一个函数,一个for外循环(对输入的数有几行,求几次),一个for内循环(求输入的两个数是不是亲和数)注意事项:定义变量有点多,注意不要重复,外和内循环的格式要正确.参考代码:#includ…… 题解列表 2020年11月16日 0 点赞 0 评论 849 浏览 评分:0.0
C语言训练-尼科彻斯定理-题解(C++代码) 摘要:解题思路:利用中位数,求m个数中的中位数,然后推出其他的数注意事项:分类讨论参考代码:#include<iostream> using namespace std; int main() { …… 题解列表 2020年11月16日 0 点赞 0 评论 818 浏览 评分:0.0