【回文数(二)】 还是用数组吧 摘要:解题思路: 1,考虑到十进制以上,用字符串数组储存所输入的数字。 2,编写change函数将字符串数组的元素全部转化成数字,再储存在全局数组a中; …… 题解列表 2019年02月13日 1 点赞 0 评论 1303 浏览 评分:0.0
二叉排序树的基本操作 (C++代码)递归建立BST 摘要:解题思路:重点都注释了温馨提示:判断自己的BST建立得对不对,只需要进行中序遍历,会得到一个从小到大的有序序列。参考代码:#include<cstdio>#include<malloc.h>typed…… 题解列表 2019年02月13日 0 点赞 0 评论 1524 浏览 评分:0.0
【密码】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char a[100]; in…… 题解列表 2019年02月13日 0 点赞 0 评论 738 浏览 评分: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 评论 663 浏览 评分: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 评论 422 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:#include<stdio.h>#include<math.h>int main(){ int i,j,hang=0,lie=0,n; scanf("%d",&n); double m[n][n];…… 题解列表 2019年02月14日 1 点赞 0 评论 739 浏览 评分:0.0
偶数列举 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n; scanf("%d",&n); for(i=2;i<n;i=i+2) { printf("%…… 题解列表 2019年02月13日 0 点赞 0 评论 818 浏览 评分:0.0
2006年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:#include<stdio.h>int main(){ int youxiu=0,tongguo=0,bujige=0; int a; do { scanf("%d",&a); if(a>=85…… 题解列表 2019年02月13日 0 点赞 0 评论 617 浏览 评分:0.0
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:#include<stdio.h>double fact(int i){ int j; double a=1.0; for(j=1;j<=i;j++) { a*=j; } return a;}int…… 题解列表 2019年02月13日 0 点赞 0 评论 669 浏览 评分:0.0
来自渣渣北的解法(C代码) 摘要:解题思路: 用一个数组来记录多个注释的起点和终点的区间,这样在最后输出结果时,只需要判断当前值是否在该区间内即可,若在则为注释部分,那么就不输出,反之输出。参考代码:#include <stdio.h…… 题解列表 2019年02月13日 0 点赞 0 评论 945 浏览 评分:0.0