C语言程序设计教程(第三版)课后习题5.8 (C语言代码) 摘要:解题思路:题目不难,用几个if全好了,主要看细心。思路在代码里面看。注意事项:无参考代码:#include <stdio.h>#include <stdlib.h>#include <math.h>i…… 题解列表 2018年08月23日 1 点赞 0 评论 1188 浏览 评分:6.0
蛇形填数 (C语言代码) 摘要:解题思路: 1、直接输出会比较麻烦,可以将结果存放在二维数组中,再输出; 2、如图,蛇形方阵的生成需要一个主循环,每次生成一圈数字,内有四个循环,分别生成↓←↑→四个方向的数字。注意事项:…… 题解列表 2018年08月23日 1 点赞 0 评论 1845 浏览 评分:9.9
C二级辅导-温度转换 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ float f,c; scanf("%f",&f); c=(f-32)*(5/9.0)…… 题解列表 2018年08月23日 0 点赞 0 评论 737 浏览 评分:0.0
C二级辅导-进制转换 (C语言代码) 摘要:解题思路:注意事项:10除以8的余数,倒着排列起来就是10的八进制数参考代码:#include <stdio.h>int main(){ int n,a[50],i=0,j; scan…… 题解列表 2018年08月23日 0 点赞 0 评论 876 浏览 评分:0.0
C二级辅导-进制转换 (C语言代码) 摘要:解题思路:注意事项:10除以8的余数,倒着排列起来就是10的八进制数参考代码:#include <stdio.h>int main(){ int n,a[50],i=0,j; scan…… 题解列表 2018年08月23日 0 点赞 0 评论 1061 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float x,y; scanf("%f",&x); if(x<1) { …… 题解列表 2018年08月23日 0 点赞 0 评论 1200 浏览 评分:0.0
蓝桥杯算法提高VIP-铺地毯 (C++代码) 摘要:#include <iostream> #include <stdio.h> #include <string> #include <cstring> #include <map> usin…… 题解列表 2018年08月23日 0 点赞 0 评论 1670 浏览 评分:0.0
夹角的问题 (C++代码) 摘要:#include <stdio.h> #include <stdlib.h> #include<math.h> int main() { int s; double x1, x2, y…… 题解列表 2018年08月23日 0 点赞 0 评论 1277 浏览 评分:9.9
P1002 (C++代码) 摘要:#include<iostream> #include<stdio.h> #include<cmath> #include<algorithm> #include<string> using…… 题解列表 2018年08月23日 0 点赞 0 评论 1810 浏览 评分:0.0
文科生的悲哀 (C++代码) 摘要:解题思路: 斐波那契数列#include<bits/stdc++.h> using namespace std; typedef long long ll; int main() …… 题解列表 2018年08月23日 0 点赞 0 评论 2664 浏览 评分:9.9