母牛的故事 (C语言代码) 摘要:解题思路: 将每前四年产的牛数放到一个一维数组中(四个数据),每隔四年刷数组内该处的数据注意事项:要注意年限以及增长规律参考代码:#include<stdio.h>void main(void)…… 题解列表 2017年10月30日 0 点赞 0 评论 706 浏览 评分:0.0
C语言训练-排序问题<1> (C语言代码) 摘要:#include<stdio.h> int main() { int a[4]; int i, j; int t; for(i=0; i<4; i++) …… 题解列表 2017年10月30日 0 点赞 1 评论 430 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:看题目,想类型,写代码。注意事项:函数的类型,符号。参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); print…… 题解列表 2017年10月30日 0 点赞 0 评论 842 浏览 评分: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 评论 701 浏览 评分:0.0
小O的乘积 (C++代码) 摘要:解题思路:只要注意几个情况就能AC了注意事项:参考代码:#include<cstdio>#include <algorithm>using namespace std;int main(){ i…… 题解列表 2017年10月31日 0 点赞 0 评论 986 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:1.按照题目要求,要先计算10个数的和,在计算平均值:我们设立一个数组num[10],然后利用for循环依次将十个数赋到数组中,并用sum求十个数的和;2.退出循环再计算平均值;3.再次利用…… 题解列表 2017年10月31日 1 点赞 0 评论 941 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:1.先建立一个循环m<=i<=n,依次判断在这一区间的每个数是否是素数,在循环内部调用isprime(i)函数;2.在int isprime(int x)函数中,我们要判断x是否是素数:设立…… 题解列表 2017年10月31日 3 点赞 1 评论 937 浏览 评分:0.0
WU-C语言程序设计教程(第三版)课后习题12.3 (C++代码) 摘要:解题思路:题目比较简单 相信大家看完我的代码应该就能明白参考代码:#include<iostream> #include<cstring> #include<sstream> #include<…… 题解列表 2017年12月12日 3 点赞 0 评论 1116 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:/* */ #include<stdio.h> #define N 10 void create(int *arr) { int i; f…… 题解列表 2017年11月01日 2 点赞 0 评论 1139 浏览 评分:0.0
字符删除 (C语言代码) 摘要:#include <stdio.h> #include <string.h> int main() { char s[200],ch,*str; int i,out; while (…… 题解列表 2017年11月01日 0 点赞 0 评论 903 浏览 评分:0.0