C语言程序设计教程(第三版)课后习题6.3 (C语言代码) 摘要:解题思路:这道题不是很难,就是一个循环思想,一次循环就够了。注意事项:注意求和的时候记得初始化。参考代码:#include<stdio.h>int main(){ int a,sum=0,b=0…… 题解列表 2017年12月21日 0 点赞 0 评论 798 浏览 评分:0.0
花落的新手算法(C语言代码) 摘要:解题思路:题目是不难,但是很容易错,题目有隐含的条件。注意事项:注意题目输入的时候在实数与字符有个|,而且实数输出的时候要保留一位小数。参考代码:#include<stdio.h>int main()…… 题解列表 2017年12月21日 0 点赞 0 评论 959 浏览 评分:0.0
我美吗! 摘要:解题思路: 最笨的办法但感觉是最好理解的,你可以把每一个循环挨个输出一下就可以看出思路,但相当好理解参考代码://可以看出图形是个正方形并且上下左右对称 #include <stdio.h> #…… 题解列表 2017年12月21日 2 点赞 1 评论 1061 浏览 评分:0.0
花落的新手代码(C语言代码) 摘要:解题思路:注意事项:注意输入的一个数可能为1或者小于1的数,这些数都不是素数。参考代码:#include<stdio.h>void sushu(int n){ int i; if(n<=1) prin…… 题解列表 2017年12月21日 0 点赞 0 评论 998 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,j=0,k,l=0,i=2; scanf("%d",&n); k=n…… 题解列表 2017年12月22日 0 点赞 0 评论 755 浏览 评分:0.0
Minesweeper (C++代码)principle's simple c++ 摘要:解题思路:扫雷问题,问题翻译建议不要去找翻译器,这样其实并没有任何提高,一个一个单词去翻译都比直接看中文版要好注意事项:定义行列,建立数组初始化是没有用的。只能用memeset参考代码:#includ…… 题解列表 2017年12月22日 0 点赞 0 评论 1316 浏览 评分:0.0
蛇行矩阵 (C++代码)principle 's simple c++ 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cstdio>using namespace std;int main(){ int a; while…… 题解列表 2017年12月22日 0 点赞 0 评论 993 浏览 评分:0.0
C语言训练-亲密数 (C语言代码) 摘要:#include<stdio.h>#include<math.h>#define N 3000int yinzihe(int num);int yinzihe(int num){ int i, j, …… 题解列表 2017年12月22日 0 点赞 0 评论 739 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:通过辗转相除法求出两个数的最大公约数是关键,然后再在此基础上求最小公倍数。参考代码:#include<stdio.h>int main(){ int m, n; scanf_s("%d%d"…… 题解列表 2017年12月22日 0 点赞 0 评论 731 浏览 评分:0.0
蓝桥杯算法提高VIP-字符串比较 (C语言代码) 摘要:#include<stdio.h> #include<string.h> int main(){ char a[100],b[100]; int i; scanf("…… 题解列表 2017年12月22日 0 点赞 0 评论 1307 浏览 评分:0.0