C语言程序设计教程(第三版)课后习题7.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a[10]; for(i=0;i<10;i++) { scanf("%d",&a[i]); } f…… 题解列表 2018年03月26日 7 点赞 0 评论 1292 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.9 (C语言代码) 摘要:解题思路:下落高度m除以2的i次方得到下落i次将要回弹的高度;总距离归结为以3*m/2为首项,1/2为公比的等比数列的前i项和减去第i次下落将要回弹的高度注意事项:参考代码:#include <std…… 题解列表 2018年03月26日 0 点赞 0 评论 1197 浏览 评分:0.0
蓝桥杯算法提高VIP-班级排名 (C语言代码) 摘要:#include<iostream> #include<algorithm> #include<map> #include<vector> #include<iterator> using …… 题解列表 2018年03月26日 1 点赞 0 评论 1767 浏览 评分:0.0
优质题解 Manchester- 字符串连接(很经典的问题) 摘要:解题思路:不调用库函数,实现字符串连接需要自己编写的有①:求字符串长度函数int stringlen_(char *l)/*求字符串长度*/ { int length=0; whi…… 题解列表 2018年03月26日 7 点赞 1 评论 1480 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题8.3 (C语言代码)判断一个整数是否为素数的方法 摘要:这个方法是临时想的,感觉好像也说的通...还是用自己习惯的方法代码仅供参考:#include <stdio.h> //判断是否为素数 int isPrime(int n) { //…… 题解列表 2018年03月26日 2 点赞 0 评论 2772 浏览 评分:9.3
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 评论 1096 浏览 评分: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 评论 1019 浏览 评分: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 评论 2101 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.5 (C语言代码)逆序输出 倒转数组的方法 摘要:好吧...作为解题为目的来说的话,我又把问题想复杂了...不过也好,复习一下倒转数组的方法#include <stdio.h> int main() { int array[10];…… 题解列表 2018年03月26日 0 点赞 0 评论 1794 浏览 评分: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 评论 946 浏览 评分:0.0