摘要: #include <iostream> #include <cstdio> #include <sstream> ///头文件 using namespace std; int main() { ostringstream s; s << 100 << 12.2; cout << s.str(); 阅读全文
posted @ 2020-07-22 11:34 xiongbing 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 拓扑排序,必须是有向无环图。 在任一有向无环图中,必然存在出度为0的顶点。否则,每个顶点都至少有一条出边,这意味着包含环路。 在对有向无环图的DFS搜索中,首先因访问完成而转换至VISITED状态的顶点m,其出度必然为0。 基于上述两条特性,我们可以得出结论: DFS搜索过程中各顶点被标记为VISI 阅读全文
posted @ 2020-05-21 17:19 xiongbing 阅读(1160) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <cstdlib> #include <sstream> #include <cstring> #include <cstdio> #include <algorithm> #include <map> # 阅读全文
posted @ 2020-05-05 16:19 xiongbing 阅读(119) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <cstdlib> #include <sstream> #include <cstring> #include <cstdio> #include <algorithm> #include <map> u 阅读全文
posted @ 2020-04-27 13:55 xiongbing 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <cstdlib> #include <sstream> #include <cstring> #include <cstdio> #include <map> using namespace std; i 阅读全文
posted @ 2020-04-26 16:14 xiongbing 阅读(170) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string.h> #include <cstdio> using namespace std; //扩展欧几里得算法 //返回a、b的最大公约数 //求得的x、y是 a*x+b*y=gcd(a,b) 的一个特解 int exgcd(int 阅读全文
posted @ 2020-04-25 17:27 xiongbing 阅读(103) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string.h> #include <cstdio> using namespace std; void _merge(int* arr,int L,int M,int R){ int leftSize = M-L+1; int righ 阅读全文
posted @ 2020-04-22 15:42 xiongbing 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 对javaEE框架的认识 一、什么是框架 通俗的理解,框架是我们软件开发中的一套解决方案,不同的框架解决的问题是不同的,比如MyBatis框架解决的是持久层的问题,springMVC框架解决的是表现层的问题。 需要注意的是,框架它本身自己是不能实现业务上的功能,它只能对,比如说持久层、表现层、结构合 阅读全文
posted @ 2020-03-28 13:35 xiongbing 阅读(3432) 评论(0) 推荐(0) 编辑
摘要: 问题描述: Fibonacci数列的递推公式为:Fn=Fn-1+Fn-2,其中F1=F2=1。 当n比较大时,Fn也非常大,现在我们想知道,Fn除以10007的余数是多少。 输入格式: 输入包含一个整数n。 输出格式: 输出一行,包含一个整数,表示Fn除以10007的余数。 代码: 1 #inclu 阅读全文
posted @ 2020-01-10 16:25 xiongbing 阅读(524) 评论(0) 推荐(1) 编辑
摘要: 一、功能介绍 该小项目的目的是实现一个简易微博系统,其具体功能如下: 用户功能:用户可以注册,登录和添加修改个人信息,申请成为管理员,修改个人微博。登录界面可保存相关用户名信息。 用户浏览页面:用户可查看推荐微博,全部微博和其它用户信息,未登录用户不可查看推荐微博。用户可退出登录。 微博浏览界面:点 阅读全文
posted @ 2019-12-24 19:16 xiongbing 阅读(1433) 评论(16) 推荐(1) 编辑