C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:用gets和puts函数注意事项:求字符串长度strlen(a);参考代码:#include<stdio.h>#include<string.h>int main(){ char a[10]…… 题解列表 2018年03月26日 0 点赞 0 评论 589 浏览 评分:0.0
蓝桥杯历届试题-大臣的旅费 (C++代码)(时间超限,但是这是一个好的方法) 摘要:解题思路:#include<cstdio> #include<cstring> #include<queue> #include<algorithm> #define N 10010 #de…… 题解列表 2018年03月26日 2 点赞 0 评论 1574 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.11 (C语言代码)用迭代法求 平方根 摘要:其实吧。。一开始这题我连题目都没看懂啥意思。。。参考了一下其他人的答案代码如下:#include <stdio.h> #include <math.h> int main() { …… 题解列表 2018年03月26日 0 点赞 0 评论 1012 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.2 (C语言代码)选择法排序 摘要:选择法排序,参考代码:#include <stdio.h> int main() { int array[10]; int i, j; int tmp; …… 题解列表 2018年03月26日 0 点赞 0 评论 959 浏览 评分:0.0
P1001 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>int cmp(const void *a,const void *…… 题解列表 2018年03月26日 1 点赞 0 评论 832 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.5 (C语言代码)逆序输出 倒转数组的方法 摘要:好吧...作为解题为目的来说的话,我又把问题想复杂了...不过也好,复习一下倒转数组的方法#include <stdio.h> int main() { int array[10];…… 题解列表 2018年03月26日 0 点赞 0 评论 1364 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码)求最小公倍数和最大公约数 摘要:参考代码如下:#include <stdio.h> //求最大公约数 int GCD(int a, int b) { int c = a % b; while (c !=…… 题解列表 2018年03月26日 0 点赞 0 评论 1547 浏览 评分:0.0
P1002 (C语言代码) 摘要:#include<stdio.h>typedef struct n{ char name[21]; int score; int grade; char c1; char…… 题解列表 2018年03月26日 0 点赞 0 评论 903 浏览 评分:0.0
P1003 (C语言代码) 摘要:#include<stdio.h>int main(){ int M,t,u,f,d; scanf("%d %d %d %d %d",&M,&t,&u,&f,&d); int sum…… 题解列表 2018年03月26日 2 点赞 0 评论 926 浏览 评分:0.0
蓝桥杯算法提高VIP-班级排名 (C语言代码) 摘要:#include<iostream> #include<algorithm> #include<map> #include<vector> #include<iterator> using …… 题解列表 2018年03月26日 1 点赞 0 评论 1354 浏览 评分:0.0