【夏禾】题解1069:2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:解题思路:O(n)的写法依次输入矩阵数字 找出最大的数及其对应的行和列注意事项:具体的行列获取需要仔细斟酌参考代码:#include<stdio.h>#include<stdlib.h>int mai…… 题解列表 2018年02月09日 2 点赞 0 评论 927 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.4 (C语言代码)。。。。。。。 摘要:解题思路:写了两个函数,具体看代码。注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<malloc.h>int swapp(int *aa,i…… 题解列表 2018年02月09日 0 点赞 0 评论 981 浏览 评分:0.0
C语言训练-"水仙花数"问题1 (C语言代码) 摘要:解题思路:首先把一个三位数的每一位数分解出来,然后立方求和。注意事项:注意分解每一位不要弄错。参考代码:#include<stdio.h>int main(){ int i,a,b,c; scanf(…… 题解列表 2018年02月09日 1 点赞 0 评论 938 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C++代码) 摘要:x类型必须是double参考代码:#include <iostream>#include <iomanip>using namespace std;double fact(double), mypow…… 题解列表 2018年02月11日 1 点赞 2 评论 745 浏览 评分:0.0
去掉双斜杠注释 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[500]; int i,j,k,flag; while(get…… 题解列表 2018年02月10日 0 点赞 0 评论 880 浏览 评分:0.0
字符排列问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int n,sum;char s[21];int b[21];void dfs(int k){ int i,j; if(k>n) { …… 题解列表 2018年02月10日 1 点赞 0 评论 1211 浏览 评分:0.0
数列排序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j; int a[9],t; scanf("%d",&n); while(n--) { t=0…… 题解列表 2018年02月10日 0 点赞 0 评论 1110 浏览 评分:0.0
日期排序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct p{ int a,b,c;}s[1000],t;int main(){ char ss[20]; int i,j,k,…… 题解列表 2018年02月10日 0 点赞 0 评论 1209 浏览 评分:0.0
蓝桥杯历届试题-兰顿蚂蚁 (C语言代码) 摘要:解题思路:将移动规则自定义成一个函数,再进行k次循环即可。注意事项:参考代码:#include<stdio.h> int a[102][102]; void go(int *x,int *y,ch…… 题解列表 2018年02月10日 1 点赞 0 评论 995 浏览 评分:0.0
字符串的输入输出处理 (C语言代码) 摘要:解题思路:前N行原样输出即可,后面的字符可用scanf("%s",a)来自动切割字符串(因为scanf遇到空格键自动结束输入),然后输出注意事项:注意格式!每输出一行要再空一行!参考代码:#inclu…… 题解列表 2018年02月10日 1 点赞 0 评论 1212 浏览 评分:0.0