2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:1.先利用数组存储这十个数值;2.存储好数值后再查找数组中最小的那个数值,用min保存,并记录当前的数组下标j=i;3.设一个中间变量temp=arr[9],然后再将arr[j]的值赋给ar…… 题解列表 2017年11月13日 1 点赞 0 评论 781 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int i,nums[15],j,temp,k; for(i=0…… 题解列表 2017年12月03日 0 点赞 0 评论 663 浏览 评分:0.0
我美吗! 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int main() { int i,t,a[10],min; for(i=0;i…… 题解列表 2017年12月12日 1 点赞 0 评论 785 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){ int i,max,a[10],…… 题解列表 2017年12月18日 0 点赞 0 评论 765 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int main(){ int i, j, fabs…… 题解列表 2018年02月07日 0 点赞 0 评论 1035 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a[10],i,mini=0; …… 题解列表 2018年02月09日 0 点赞 0 评论 750 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:/*输入10个数,找出其中绝对值最小的数,将它和最后一个数交换,然后输出这10个数*/#include <stdio.h>#include <math.h>int mai…… 题解列表 2018年03月06日 0 点赞 0 评论 980 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (使用指针)(C语言代码) 摘要:解题思路:使用指针记录最小值的地址,循环结束时交换值注意事项:注意绝对值的使用,还有使用异或运算时,如果是同一个对象,会把值变成0的参考代码:#include<stdio.h>int main(){ …… 题解列表 2018年03月06日 0 点赞 0 评论 854 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)找出绝对值最小数与最后一位交换 摘要:第一遍错误是没有看清题目说的是绝对值。。参考代码如下:#include <stdio.h> #include <math.h> int main() { int a[10]; …… 题解列表 2018年03月30日 0 点赞 0 评论 548 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:将绝对值最小值标记,与最后一个数换位置注意事项:不要打乱其他数的顺序,abs函数在math.h库参考代码:#include<stdio.h>#include<math.h>int main(…… 题解列表 2018年04月26日 0 点赞 0 评论 695 浏览 评分:0.0