P1001 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;const int M=10000;int a[M]={…… 题解列表 2017年08月01日 0 点赞 0 评论 981 浏览 评分:6.0
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:利用ctof函数不断递归注意事项:注意c*9/5的运算规则,若写成c*(9/5)则会导致结果错误参考代码:#include <stdio.h>int ctof(int c){ int f; …… 题解列表 2017年08月01日 0 点赞 0 评论 1017 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题10.3 (C语言代码) 摘要:解题思路:把最小值,最大值的下标都定在第一个,只需要知道最小值和最大值的下标就可以交换解决问题啊!怎么答案错误???????注意事项:参考代码:#include <stdio.h>void input…… 题解列表 2017年08月01日 0 点赞 0 评论 1133 浏览 评分:0.0
回文数字 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int is_right(int m,int n){ int a[6]={0}; int t=…… 题解列表 2017年08月01日 0 点赞 0 评论 1249 浏览 评分:0.0
【求帮助】C语言程序设计教程(第三版)课后习题8.9 (C语言代码) 摘要:解题思路:运行错误,用codeblocks跑是可以的注意事项:参考代码:#include<stdio.h> int main() { char a[20]; i…… 题解列表 2017年08月01日 0 点赞 0 评论 1009 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct student{ char num[50]; char name[50]; int a,…… 题解列表 2017年08月01日 2 点赞 0 评论 1131 浏览 评分:0.0
Minesweeper (C语言代码) 摘要:解题思路:遍历所有格子.把有雷的格子周围的空格计数+1.代码:#include <stdio.h>#include <stdlib.h>void MinesInCorner(char **,int,i…… 题解列表 2017年08月01日 2 点赞 2 评论 1044 浏览 评分:0.0
众数问题 (C++代码) 摘要://解题思路: //STL map 的用法 //注意事项: //STL map 的用法 规范 //map就是红黑树的封装。 #include <cstdio> …… 题解列表 2017年08月02日 8 点赞 0 评论 1504 浏览 评分:0.0
倒杨辉三角形 (C语言代码) 摘要:解题思路:1.先写出基本的杨辉三角的样式,存在数组当中。2.然后倒着输出,找到倒着输出的规律就好了。记得数字的占位符的宽度应该和一次输出的空格的长度相等。参考代码:#include<stdio.h> …… 题解列表 2017年08月02日 15 点赞 0 评论 4430 浏览 评分:8.0
gets函数前有scanf读取时候,会读取缓存回车导致出错!!! 摘要:注意事项:gets(str);函数遇到缓存已经有回车时就会什么都没读取参考代码: scanf("%d",&n);// scanf("%s",str1);// getchar(); gets(str1)…… 题解列表 2017年08月02日 1 点赞 0 评论 1368 浏览 评分:6.0