C语言程序设计教程(第三版)课后习题8.9 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int letter=0,digit=0,space=0,others=0;void count(char str[]){int i;…… 题解列表 2017年12月17日 0 点赞 0 评论 816 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:通过辗转相除法求出两个数的最大公约数是关键,然后再在此基础上求最小公倍数。参考代码:#include<stdio.h>int main(){ int m, n; scanf_s("%d%d"…… 题解列表 2017年12月22日 0 点赞 0 评论 728 浏览 评分:0.0
【出圈】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; while(scanf("%d%d",&n,&m)!=EOF){ int x[n],i; …… 题解列表 2017年12月17日 0 点赞 0 评论 656 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:注意事项:在定义阶乘、阶乘和的时候要用long long型,用int会溢出。参考代码:#include<stdio.h>long long jiecheng(int n);long long…… 题解列表 2017年12月17日 0 点赞 0 评论 829 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>float he(int a);float pingfanghe(int b);float daoshu…… 题解列表 2017年12月17日 0 点赞 0 评论 652 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N; scanf("%d", &N); int i,j,sum,n; int a[1000]; int …… 题解列表 2017年12月17日 0 点赞 0 评论 700 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.2 (C语言代码) 摘要:解题思路:此处用了冒泡排序注意事项:参考代码:#include<stdio.h>#define N 10int main(){ int i,j,temp; int a[N]; for (i = 0; …… 题解列表 2017年12月17日 0 点赞 0 评论 781 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max_yue(int m, int n);int min_bei(int m, int n);int max_yue(int …… 题解列表 2017年12月17日 0 点赞 0 评论 684 浏览 评分:0.0
花落的新手算法 (C语言代码) 摘要:解题思路:注意事项:C语言无法删除已定义的数据。参考代码:#include<stdio.h>#define AUM(x,y) {int l;l=x;x=y;y=l;} //宏定义,交换数据,因为C语…… 题解列表 2017年12月17日 1 点赞 0 评论 1026 浏览 评分:0.0
蓝桥杯算法提高VIP-Quadratic Equation (C++代码) 摘要:#include<iostream> #include<math.h> #include<iomanip> using namespace std; int main(){ doub…… 题解列表 2017年12月17日 0 点赞 0 评论 832 浏览 评分:0.0