C语言程序设计教程(第三版)课后习题6.11 (C语言代码)用迭代法求 平方根 摘要:其实吧。。一开始这题我连题目都没看懂啥意思。。。参考了一下其他人的答案代码如下:#include <stdio.h> #include <math.h> int main() { …… 题解列表 2018年03月26日 0 点赞 0 评论 1012 浏览 评分:0.0
蓝桥杯历届试题-大臣的旅费 (C++代码)(时间超限,但是这是一个好的方法) 摘要:解题思路:#include<cstdio> #include<cstring> #include<queue> #include<algorithm> #define N 10010 #de…… 题解列表 2018年03月26日 2 点赞 0 评论 1574 浏览 评分:0.0
迷宫问题 (C++代码) 摘要:解题思路:迪克斯特拉算法,此题权都为1,故相当于广度优先搜索算法遍历注意事项:借助队列进行广度优先搜索遍历参考代码为了图方便,并未用循环队列,此时应注意容量应该足够大另外用到了部分C++中的语法参考代…… 题解列表 2018年03月26日 14 点赞 0 评论 1631 浏览 评分:8.7
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:用gets和puts函数注意事项:求字符串长度strlen(a);参考代码:#include<stdio.h>#include<string.h>int main(){ char a[10]…… 题解列表 2018年03月26日 0 点赞 0 评论 588 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:得到两个整数,将两个整数相加注意事项:参考代码:#include (stdio.h)int main (){ int i , j; scanf("%d, %d"…… 题解列表 2018年03月26日 0 点赞 0 评论 887 浏览 评分:0.0
Hello, world! (Java代码) 摘要:解题思路:注意事项:题目中的“Please process to the end of file(EOF).”,在控制台输入数据时,是否应该以“Ctr+Z”结束?参考代码:import java.ut…… 题解列表 2018年03月26日 0 点赞 0 评论 846 浏览 评分:6.0
C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; while(1) { printf("请输入一个分数\n"); sca…… 题解列表 2018年03月26日 0 点赞 0 评论 693 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; while(1) { printf("请输入一个数\n"); scan…… 题解列表 2018年03月26日 0 点赞 0 评论 725 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float F; printf("请输入华氏温度:\n"); scanf("%f",&F); printf(…… 题解列表 2018年03月26日 0 点赞 0 评论 556 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float F; printf("请输入华氏温度:\n"); scanf("%f",&F); printf(…… 题解列表 2018年03月26日 1 点赞 0 评论 866 浏览 评分:0.0