2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:/* */ #include<stdio.h> #define N 10 void create(int *arr) { int i; f…… 题解列表 2017年11月01日 2 点赞 0 评论 1155 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.8 (C语言代码) 摘要:解题思路:链式排序不是那么好弄。。所以用了交换注意事项:参考代码:/*lb*/ #include<stdio.h> #include<stdlib.h> typedef struct stude…… 题解列表 2017年11月01日 3 点赞 1 评论 1164 浏览 评分:8.4
幸运数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;const int M=500000;int a[M],count;void Lucky_nu…… 题解列表 2017年11月01日 1 点赞 0 评论 3454 浏览 评分:7.3
C语言程序设计教程(第三版)课后习题11.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* 哎。。 */ #include<stdio.h> #define N 100 struct student { char num[10]; …… 题解列表 2017年10月31日 0 点赞 0 评论 1678 浏览 评分:9.9
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:1.先建立一个循环m<=i<=n,依次判断在这一区间的每个数是否是素数,在循环内部调用isprime(i)函数;2.在int isprime(int x)函数中,我们要判断x是否是素数:设立…… 题解列表 2017年10月31日 3 点赞 1 评论 957 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* t */ #include<stdio.h> #define N 100 struct student { char num[10]; …… 题解列表 2017年10月31日 12 点赞 5 评论 2310 浏览 评分:9.5
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:1.按照题目要求,要先计算10个数的和,在计算平均值:我们设立一个数组num[10],然后利用for循环依次将十个数赋到数组中,并用sum求十个数的和;2.退出循环再计算平均值;3.再次利用…… 题解列表 2017年10月31日 1 点赞 0 评论 963 浏览 评分:0.0
小O的乘积 (C++代码) 摘要:解题思路:只要注意几个情况就能AC了注意事项:参考代码:#include<cstdio>#include <algorithm>using namespace std;int main(){ i…… 题解列表 2017年10月31日 0 点赞 0 评论 997 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; a=1; b=1; c=a+b; scanf("c=%d",c); }…… 题解列表 2017年10月31日 0 点赞 0 评论 710 浏览 评分:0.0
买不到的数目 (C语言代码) 摘要:解题思路:一个公式,两个数最大不能组合的数为两个数之积减去两个数之和。注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d…… 题解列表 2017年10月31日 25 点赞 20 评论 3377 浏览 评分:8.3