C语言训练-求矩阵的两对角线上的元素之和 (C++代码) 摘要:解题思路:将n的情况分为两种,奇数偶数。参考代码:#include<iostream> using namespace std; int main() { int n, i, j, sum …… 题解列表 2018年06月08日 0 点赞 0 评论 1236 浏览 评分:9.3
母牛的故事 (C语言代码) 摘要:解题思路: 累加 仔细看会发现第n年的母牛数是n-1年和n-3年母牛数之和 发现这些 做题就比较容易了注意事项: 对于某些同学来说 会用递归来做 虽说两种方法都差不多,但由于递归需要系统堆栈,所以…… 题解列表 2018年06月08日 0 点赞 0 评论 951 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int paixu1();int paixu2();int paixu3();int main(){ int a[10],i; …… 题解列表 2018年06月08日 0 点赞 0 评论 1127 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.5 (C语言代码) 摘要:解题思路:利用自定义函数和递归调用解题注意事项:注意1/c的浮点型定义参考代码:#include<stdio.h>int a,b;float c;aa(int i){ int ta; if(i==1)…… 题解列表 2018年06月08日 0 点赞 0 评论 1288 浏览 评分:0.0
逆反的01串 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> using namespace std; int main() { string st…… 题解列表 2018年06月08日 0 点赞 0 评论 1625 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int temp(int n);int main(){ int n; scanf("%d", &n); …… 题解列表 2018年06月08日 0 点赞 0 评论 725 浏览 评分:0.0
C语言训练-邮票组合问题* (C语言代码) 摘要:#include<stdio.h> int main() { int a[100] = {0}; int i, j, k, n, sum; n = 1; f…… 题解列表 2018年06月08日 0 点赞 0 评论 858 浏览 评分:0.0
【密码】 (C语言代码)#力求简洁 (๑´▿`๑)♫•*¨*•.¸¸♪✧ 摘要:解题思路: 1.定义三个数组,char数组a保存当前行的字符串 int数组b判断字符是否存在 有则为1 无责为0 题解列表 2018年06月08日 1 点赞 0 评论 1975 浏览 评分:0.0
送分题素数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int a[9]={2,3,5,7,11,13,15,…… 题解列表 2018年06月08日 0 点赞 0 评论 1451 浏览 评分:9.9
C二级辅导-温度转换 (C语言代码)(๑•̀ㅁ•́ฅ) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ double F; scanf("%lf",&F); printf("%.2l…… 题解列表 2018年06月08日 1 点赞 0 评论 1270 浏览 评分:0.0