上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 因为刷个leetcode就懒得开虚拟机了,用惯了bash用回cmd很不习惯,所以想用bash。看了几篇博客好像vscode版本已经不一样所以设置也不一样了。 (1)ctrl+shift+c:setting (2)只需要在其中加入 "terminal.integrated.shell.windows" 阅读全文
posted @ 2021-04-22 13:20 manch1n 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 通过努力获得了银奖,胜过许多知名高校好意外,接下来该准备考研了,以下是第二名代码,供各位参考,虽然命名还有各种宏写法惨不忍睹:) https://github.com/manch1n/CPC2020China-Parallel-application-Challenge-on-domestic-CP 阅读全文
posted @ 2020-09-16 11:07 manch1n 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 用wireshark对SSL握手分析 为了更好理解SSL协议的握手过程,结合实例,使用Wireshark抓包分析SSL握手过程中客户端与服务器间的交互过程。本例中服务器为https://10.21.49.130,客户端为本机浏览器192.168.1.214。 0x00 第一阶段 客户端浏览器向服务器 阅读全文
posted @ 2019-12-17 00:37 manch1n 阅读(2104) 评论(0) 推荐(0) 编辑
摘要: 今天想复习一下AVL树和红黑树,想写出来,没想到太难了,我太难了 :( AVL树的左旋:左节点成为根,右节点接管原根节点,原根节点接管左节点的右节点。 只写了AVL树的插入: template <typename T> class AVLNode { public: T value; AVLNode 阅读全文
posted @ 2019-11-11 22:07 manch1n 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 今天在看effective modernc++的时候注意到了一个细节,在用c++11新标准遍历map时的参数的类型的key要为const,否则访问的是一个局部对象,这个我一直都没有注意到,现在复习一下: 查阅http://www.cplusplus.com/reference/map/map/?kw 阅读全文
posted @ 2019-11-07 16:27 manch1n 阅读(253) 评论(0) 推荐(0) 编辑
摘要: weak callback std::forward https://zh.cppreference.com/w/cpp/utility/forward https://blog.csdn.net/linuxheik/article/details/86411093 阅读全文
posted @ 2019-10-31 22:18 manch1n 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 最近两天看了以下《The C++ Standard library》里介绍的并发模型。今天搞了一下午,排查了bug,终于搞定了: 总体来讲还是比pthread提供的接口要简洁。 定义task threadpool.h threadpool.cc 测试一下: 输出: 阅读全文
posted @ 2019-10-31 19:16 manch1n 阅读(809) 评论(0) 推荐(0) 编辑
摘要: 相关知识课本还有百度都可以讲的很详细了,这里就只贴一下代码,供各位参考: https://github.com/manch1n/xinxianquan 阅读全文
posted @ 2019-10-22 16:34 manch1n 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 最近信息安全作业要写hill密码,涉及到求矩阵的逆。不想用一个函数就用那些乱七八糟的库,大概找了找又没现成的,只能自己撸了。 写的时候才发现线代都忘光了QAQ 阅读全文
posted @ 2019-10-16 15:39 manch1n 阅读(680) 评论(0) 推荐(0) 编辑
摘要: UNP讲述了三种传递描述符的方法: 1.使用ioctl 2.如果是父子关系进程用socketpair 3.没关系则使用unix socket 这里介绍一下第三种,因为相对复杂繁琐: UNP里讲述了这个步骤: 1.创建unix stream socket,其中要有一个是bind且在listen的。 2 阅读全文
posted @ 2019-09-18 22:00 manch1n 阅读(458) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页