C语言程序设计教程(第三版)课后习题9.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define da(a,b,c) d=a>b?(a>c?a:c):(b>c?b:c);float zu…… 题解列表 2017年07月25日 0 点赞 0 评论 819 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF) { if(a==0&&b=…… 题解列表 2017年07月25日 0 点赞 0 评论 995 浏览 评分:0.0
A+B for Input-Output Practice (IV) (C语言代码) 摘要:#include <stdio.h>int main(){ int t=1,sum=0,i; while(t) { scanf("%d",&t); int a[t]; for(i=0;i<t;i…… 题解列表 2017年07月25日 0 点赞 0 评论 977 浏览 评分:0.0
亲和的解法 摘要:解题思路:注意事项:刚开始我做的代码是一组一组的吸收数据并得出结果,然后想到了利用数组的办法来收集结果并统一输出参考代码:#include <stdio.h>#include <stdlib.h>in…… 题解列表 2017年07月25日 1 点赞 0 评论 1467 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3],i,j,t; for(i=0;i<3;i++) scanf("%d"…… 题解列表 2017年07月25日 0 点赞 0 评论 902 浏览 评分:0.0
数字整除 (C语言代码) 摘要:#include<stdio.h> #include<string.h> int chartoint(char s[]) { char *p,*q; char temp;…… 题解列表 2017年07月25日 0 点赞 0 评论 1139 浏览 评分:0.0
指针做法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>move(int *a,int *b,int m,int n);int main(){ int i,a[1024],b[1024]…… 题解列表 2017年07月25日 3 点赞 0 评论 1206 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int fun(int n){ int k=1; if(n==1) { return k; } while(n!=1) {…… 题解列表 2017年07月26日 0 点赞 0 评论 1013 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <cstdio>#include <algorithm>using namespace std;int main(){ int a,b,c; s…… 题解列表 2017年07月26日 0 点赞 0 评论 1140 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.5 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <cstdio>#include <algorithm>using namespace std;int main(){ int x; scanf…… 题解列表 2017年07月26日 0 点赞 0 评论 914 浏览 评分:0.0