C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路以及注意事项:1. 小方是自己定义了gcd()函数来求最大公因数(最大公因数就是像12和18的最大公因数是6,两数除它都是整除)。2. gcd()函数用到了函数的递归调用,可能相对有点…… 题解列表 2017年06月10日 39 点赞 30 评论 4553 浏览 评分:9.3
拆分位数 (C语言代码) 摘要:#include<stdio.h> int main() { int a,b,c,x; scanf("%d",&x); a =  题解列表 2017年06月30日 19 点赞 3 评论 1941 浏览 评分:9.3
C语言程序设计教程(第三版)课后习题10.2 (C语言代码) 摘要:#include<string.h> #include<stdio.h> int main(void) { char s1[100]; char s2[100]; char s3[1…… 题解列表 2017年07月03日 31 点赞 3 评论 2779 浏览 评分:9.3
C语言程序设计教程(第三版)课后习题11.8 (C++代码) 摘要:#include<stdio.h> #include<stdlib.h> typedef struct students { int num ; int score; s…… 题解列表 2017年07月04日 8 点赞 0 评论 2012 浏览 评分:9.3
C语言程序设计教程(第三版)课后习题1.6 (C++代码) 摘要:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a>b){ …… 题解列表 2017年07月07日 3 点赞 5 评论 1389 浏览 评分:9.3
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d%d%d",&a,&b,&c); max=a; if(b>max…… 题解列表 2017年07月12日 1 点赞 0 评论 1047 浏览 评分:9.3
C二级辅导-阶乘数列 (C++代码) 摘要:解题思路:正常求阶乘,再求和即可,,当然直接输出结果有时可以的,嗯,就是这样。。。(下面有彩蛋hhhhh)注意事项:注意计算时的逻辑,当然还有格式,,直接输出的话——需要注意格式:“2.74e+32\…… 题解列表 2017年07月28日 5 点赞 7 评论 2249 浏览 评分:9.3
拆分位数 (C++代码)用char简单粗暴,嗯 摘要:解题思路:用char简单粗暴,嗯注意事项:参考代码:#include <stdio.h> int main() { char a, b, c; while (scanf("%…… 题解列表 2017年07月30日 4 点赞 4 评论 1399 浏览 评分:9.3
【计算两点间的距离】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x1,x2,y1,y2,d; while(scanf(…… 题解列表 2017年07月30日 1 点赞 1 评论 1578 浏览 评分:9.3
C语言训练-求矩阵的两对角线上的元素之和 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <cstdio>int main(){ int n; scanf("%d",&n); int i[11][11]; for(in…… 题解列表 2017年08月01日 0 点赞 0 评论 1234 浏览 评分:9.3