C二级辅导-阶乘数列 (C语言代码) 摘要:long long int 和 long int 都是不可以的。只能用double#include<stdio.h>int main(){ int i; double a=0,b=1; for(i=1…… 题解列表 2019年02月13日 0 点赞 0 评论 459 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:#include<stdio.h>#include<math.h>int main(){ int a[10],i,j; for(i=0;i<10;i++) { scanf("%d",&a[i]); …… 题解列表 2019年02月13日 0 点赞 0 评论 827 浏览 评分:0.0
不容易系列2 (C++代码)(全排列) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<algorithm> using namespace std; int main() { int…… 题解列表 2019年02月13日 0 点赞 0 评论 654 浏览 评分:0.0
蓝桥杯算法提高VIP-寻找三位数 (C语言代码) 摘要:解题思路:第一个三位数是123-329;通过for语句,每次都能确定三个三位数的具体数值,把三个三位数的每个数放入一个数组进行排序,最后判断是否满足1 2 3 4 5 6 7 8 9 注意事项:参考代…… 题解列表 2019年02月13日 0 点赞 0 评论 681 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要://当0<=x<2时,(x+1)的二分之一次方。意思也就是sqrt(x+1).二分之一次方可以换成开平方根。 #include<stdio.h>#include<math.h>int main(){ …… 题解列表 2019年02月13日 0 点赞 0 评论 1054 浏览 评分:0.0
【回文数(二)】 还是用数组吧 摘要:解题思路: 1,考虑到十进制以上,用字符串数组储存所输入的数字。 2,编写change函数将字符串数组的元素全部转化成数字,再储存在全局数组a中; …… 题解列表 2019年02月13日 1 点赞 0 评论 1572 浏览 评分:0.0
二叉排序树的基本操作 (C++代码)递归建立BST 摘要:解题思路:重点都注释了温馨提示:判断自己的BST建立得对不对,只需要进行中序遍历,会得到一个从小到大的有序序列。参考代码:#include<cstdio>#include<malloc.h>typed…… 题解列表 2019年02月13日 0 点赞 0 评论 1766 浏览 评分:0.0
【密码】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char a[100]; in…… 题解列表 2019年02月13日 0 点赞 0 评论 929 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:#include<stdio.h>#include<math.h>double fact(int n){ int i; double j=1.0; for(i=1;i<=n;i++) { j*=i;…… 题解列表 2019年02月13日 0 点赞 0 评论 826 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:#include<stdio.h>int main(){ int i; double f; for(i=-100;i<=150;i=i+5) { f=32+(i*(9.0/5.0)); print…… 题解列表 2019年02月13日 0 点赞 0 评论 504 浏览 评分:0.0