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 评论 769 浏览 评分: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 评论 997 浏览 评分:0.0
回文判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,j,k=0; char a[100000]; scanf("%s…… 题解列表 2019年02月13日 1 点赞 0 评论 1151 浏览 评分:5.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 评论 502 浏览 评分: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 评论 821 浏览 评分:0.0
【密码】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char a[100]; in…… 题解列表 2019年02月13日 0 点赞 0 评论 917 浏览 评分:0.0
二叉排序树的基本操作 (C++代码)递归建立BST 摘要:解题思路:重点都注释了温馨提示:判断自己的BST建立得对不对,只需要进行中序遍历,会得到一个从小到大的有序序列。参考代码:#include<cstdio>#include<malloc.h>typed…… 题解列表 2019年02月13日 0 点赞 0 评论 1755 浏览 评分:0.0
【回文数(二)】 还是用数组吧 摘要:解题思路: 1,考虑到十进制以上,用字符串数组储存所输入的数字。 2,编写change函数将字符串数组的元素全部转化成数字,再储存在全局数组a中; …… 题解列表 2019年02月13日 1 点赞 0 评论 1564 浏览 评分:0.0
数据结构-图的遍历——广度优先搜索 (C++代码) 摘要:解题思路: 首先要开一个二维数组储存邻接矩阵,一般的方法是开一个足够大的数组,例如这道题是n不大于50,不过这样做会造成空间不必要的浪费。因此手动分配空间会更为合理。一种方法是用mall…… 题解列表 2019年02月13日 1 点赞 0 评论 1411 浏览 评分: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 评论 1051 浏览 评分:0.0