C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:注意事项:int类型不够大,要用long类型,输出记得加"ld"参考代码:#include <stdio.h>#include<math.h>int main(){ int i,j,n; l…… 题解列表 2018年02月09日 0 点赞 0 评论 819 浏览 评分:0.0
【夏禾】题解1069:2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:解题思路:O(n)的写法依次输入矩阵数字 找出最大的数及其对应的行和列注意事项:具体的行列获取需要仔细斟酌参考代码:#include<stdio.h>#include<stdlib.h>int mai…… 题解列表 2018年02月09日 2 点赞 0 评论 1085 浏览 评分: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 评论 1311 浏览 评分:0.0
C语言训练-"水仙花数"问题1 (C语言代码) 摘要:解题思路:首先把一个三位数的每一位数分解出来,然后立方求和。注意事项:注意分解每一位不要弄错。参考代码:#include<stdio.h>int main(){ int i,a,b,c; scanf(…… 题解列表 2018年02月09日 1 点赞 0 评论 1074 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C++代码) 摘要:x类型必须是double参考代码:#include <iostream>#include <iomanip>using namespace std;double fact(double), mypow…… 题解列表 2018年02月11日 1 点赞 2 评论 819 浏览 评分: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 评论 1219 浏览 评分: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 评论 1447 浏览 评分: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 评论 1443 浏览 评分: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 评论 1425 浏览 评分:0.0
蓝桥杯历届试题-兰顿蚂蚁 (C语言代码) 摘要:解题思路:将移动规则自定义成一个函数,再进行k次循环即可。注意事项:参考代码:#include<stdio.h> int a[102][102]; void go(int *x,int *y,ch…… 题解列表 2018年02月10日 1 点赞 0 评论 1324 浏览 评分:0.0