以前总是不愿意写平衡树,这次规范了一下写法. 1. 建立虚拟节点 -inf 与 inf 2. 每隔 10 次左右 splay 到根 3. 各种操作写递归版就行. code: #include <cstdio> #include <algorithm> #include <cstring> #incl ...
分类:
其他好文 时间:
2020-06-01 16:50:29
阅读次数:
74
Linux特点总结: 1、 免费的、开源的。 2、 支持多线程(并发)。多用户。 3、 安全性比Windows要好。 4、 对内存和文件管理优越。 使用VI编辑器在Linux系统下开发程序 1、VI Hello.java 2、输入i(进入到插入模式) 3、保存:输入Esc键(进入到命令模式即可输入命 ...
分类:
系统相关 时间:
2020-06-01 01:18:39
阅读次数:
153
分为Dll注入和代码注入,优缺点 代码注入: 是没有全局变量和没有使用IAT表的硬编码,放到哪里都能执行。 优点:不易被发现。 缺点:自己写函数十分麻烦。 dll注入: 模块注入一整个进去 优点:全局函数IAT都在模块中,使用方便。缺点:容易被检测,特征太明显。 CreateThread和Creat ...
分类:
编程语言 时间:
2020-05-31 13:05:40
阅读次数:
64
#include<vector> // 包含头文件vector ... using namespace std; // vector包含在std中,因此必须包含std::vector vector <int> vi; // create a zero-size array of int int n; ...
分类:
编程语言 时间:
2020-05-30 23:25:48
阅读次数:
106
在上一篇文章中我们创建了第一个项目 Hello World ,项目是创建好了,但还不知道这个 Hello World 是个啥玩意?到底怎么运行? 一.Hello World源码 我们将hello world.cpp的内容修改如下如下: // hello world.cpp : 定义控制台应用程序的入 ...
分类:
编程语言 时间:
2020-05-30 19:35:52
阅读次数:
66
数组下标运算符[]通常用于访问、修改一个对象中的数据域或者元素。而现在,我们希望它的功能是:访问有理数(C++ 有理数类)的分子和分母。 首先我们在Rational.h文件的public中添加: int operator[](int index); 然后在Rational.cpp文件中实现函数: i ...
分类:
编程语言 时间:
2020-05-30 10:35:55
阅读次数:
72
#include <bits/stdc++.h> using namespace std; char cnt = 0; struct A { A() { *reinterpret_cast<char*>(this) = ++cnt; cout << "construct: " << this << ...
分类:
其他好文 时间:
2020-05-29 23:40:29
阅读次数:
109
#include <bits/stdc++.h> using namespace std; char cnt = 0; struct A { A() { *reinterpret_cast<char*>(this) = ++cnt; cout << "construct: " << this << ...
分类:
其他好文 时间:
2020-05-29 23:23:00
阅读次数:
71
支配树 (一下的节点大小比较默认为dfs序的大小) idom支配点——s->t的必经点 sdom半支配点 半支配点 $sdom[w]$为能到达w点的v的最小值,要求路径上处理起点终点外所有点大于w 性质: 半支配点唯一 半支配点一定是dfs树上的祖先 任意点w(w不等于起点s)的支配点是该节点半支配 ...
分类:
其他好文 时间:
2020-05-29 20:58:16
阅读次数:
55
gzserver: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreRenderSystem.cpp:546: virtual void Ogre::RenderSystem::setDepthBufferFor(Ogre::RenderTarget*): Assertion `bAttached && "A new DepthBuffer for a RenderTarget was created, but after creation" "it says it‘s incompatible with that RT"‘ failed.
分类:
其他好文 时间:
2020-05-29 19:45:03
阅读次数:
180