C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ printf("**************************\nHello World!\n****…… 题解列表 2018年08月14日 0 点赞 0 评论 799 浏览 评分:0.0
蓝桥杯2014年第五届真题-Log大侠 (C++代码) 摘要:解题思路:既能实现数组的二分查找,又能实现链表的O(1)删除,原来是map。注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef l…… 题解列表 2018年08月14日 0 点赞 0 评论 787 浏览 评分:0.0
数据结构-广义表的基本操作 (C语言代码) 摘要:参考代码:#include<stdio.h> #include<string.h> #include<malloc.h> #define MAX_STR_LEN 101 typedef…… 题解列表 2018年08月14日 1 点赞 0 评论 1259 浏览 评分:0.0
蓝桥杯2013年第四届真题-错误票据 (C++代码) 摘要:解题思路:很明显这题就是要我们输入数字,然后对这些数字进行升序(从小到大)排序,因为是连续的,只要判断是不是+1等于下一个数字,不是那就是缺的,然后就是找重复的数字不过这里我是先找重复的,然后删掉重复…… 题解列表 2018年08月14日 14 点赞 0 评论 1198 浏览 评分:0.0
P1001 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int Confirm(int n){ //确定是否为质数 if(n<2)…… 题解列表 2018年08月14日 0 点赞 0 评论 1254 浏览 评分:0.0
数据结构-KMP字符串模式匹配算法实现 (C++代码) 摘要: 参考代码:#include<bits/stdc++.h> using namespace std; const int SIZE = 2130; int perfix[SIZ…… 题解列表 2018年08月22日 0 点赞 0 评论 2114 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C++代码) 摘要:解题思路:运用辗转相除求最大公约数,应用性质求最小公倍数参考代码:#include<stdio.h> int main() { int x,y,i,j,t,s;//i为最大公约数,j为最小公倍…… 题解列表 2018年08月14日 0 点赞 0 评论 871 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.5 (Java代码) 摘要:解题思路:注意事项:如果看的话建议复制粘贴放到eclipse后ctrl+shit+f键整理代码。这样就看的清楚了。 在这里我写的代码都是有格式的,但是系统把代码格式变成默认的,看的话不方…… 题解列表 2018年08月14日 1 点赞 0 评论 1798 浏览 评分:0.0
C语言训练-"水仙花数"问题1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a,b,c; a=n%10; b=(n/10)%10; c…… 题解列表 2018年08月14日 0 点赞 0 评论 912 浏览 评分:0.0
C语言训练-"水仙花数"问题2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; for(n=100;n<1000;n++) { int a,b,c; a=n%10; b=(n/1…… 题解列表 2018年08月14日 0 点赞 0 评论 1002 浏览 评分:0.0