摘要: 开始新的生活吧 阅读全文
posted @ 2024-02-25 17:20 幻想Elapse 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <fstream> 3 #include <string> 4 #include <iomanip> 5 #include <vector> 6 #include <map> 7 #include <cctype> 8 #includ 阅读全文
posted @ 2023-04-11 23:33 幻想Elapse 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 通常组播会涉及到三层设备即路由器,需要用到igmp协议,本文的配置针对纯二层设备环境,简单地说,就是没有任何路由器,只有交换机而且只有一台,各主机通过该交换机连接,通过相应的配置在这些主机之间实现组播数据的发送和接收。 本文介绍两种方式的大概配置过程: 配置igmp snooping协议,一台主机作 阅读全文
posted @ 2023-01-09 11:54 幻想Elapse 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 1.问题:不能进入localhost界面 解决方法: 1)在控制面板中进入“程序和功能” 2)进入Windows功能面板,将下面三项勾上 3)可进入localhost页面 2.无法通过localhost:8080进入Tomcat 1)启动时发现报错信息: 原因是8080端口被占用(使用' netst 阅读全文
posted @ 2022-02-09 16:25 幻想Elapse 阅读(912) 评论(0) 推荐(0) 编辑
摘要: 对于一个序列,每输入一个数t,如果栈不为空,就判断它与栈顶是否相等,如果等,栈顶出栈,判断下一个数;如果不等,在栈的大小允许范围内,将index入栈,每入栈一次判断一次t与 栈顶是否相等。 如果序列是符合要求的,最后的栈一定是空的,所以只要在处理完序列后判断栈有没有空即可知道序列对不对。 1 int 阅读全文
posted @ 2021-03-05 17:37 幻想Elapse 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 非原创,参考:https://blog.csdn.net/richenyunqi/article/details/81150510 1 #pragma warning(disable:4996) 2 #define _CRT_SECURE_NO_WARNINGS 3 4 #include <iost 阅读全文
posted @ 2021-03-05 10:50 幻想Elapse 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 1 #pragma warning(disable:4996) 2 #define _CRT_SECURE_NO_WARNINGS 3 4 #include <iostream> 5 #include <algorithm> 6 #include <cmath> 7 #include <vector 阅读全文
posted @ 2021-03-04 21:37 幻想Elapse 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 第一个序列用vector存储起来,第二个序列读入时可同时处理(在线算法)。 需要得到的数(结果)是两个序列组合并后,处于下标(n+m-1)/2的数,所以for循环需要执行(n+m-1)/2次(每次确定一个数)。 最后输出s2[i-1]或者s2[(n+m-1)/2]即可。 注意此处的处理: 如果输入个 阅读全文
posted @ 2021-03-04 19:32 幻想Elapse 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/richenyunqi/article/details/78868563 1 #pragma warning(disable:4996) 2 #define _CRT_SECURE_NO_WARNINGS 3 4 #include <iostream 阅读全文
posted @ 2021-03-04 11:08 幻想Elapse 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 1 #pragma warning(disable:4996) 2 #define _CRT_SECURE_NO_WARNINGS 3 4 #include <iostream> 5 #include <algorithm> 6 #include <cmath> 7 #include <vector 阅读全文
posted @ 2021-03-03 10:50 幻想Elapse 阅读(51) 评论(0) 推荐(0) 编辑