分析一下 lua 中常用的几个数据结构: 先看一下 opcode.h 中的: typedef?unsigned?char?Byte;
typedef?unsigned?short?Word;
typedef?union
{
?struct?{char?c1;?char?c2;}?m;
?Word?w;
}?CodeW...
分类:
其他好文 时间:
2014-09-11 13:59:42
阅读次数:
234
有这样一个查询的差异:两张表如下:语句在这里: 1 create table #AA 2 ( 3 ID int, 4 Name nvarchar(50) 5 ) 6 7 insert into #AA 8 select 1,'项目1' 9 union all10 select 2,'项目2...
分类:
其他好文 时间:
2014-09-10 15:41:10
阅读次数:
284
目标站:http://www.51team.cn/ 注入点:http://www.51team.cn/newmess.php?id=138 找到注入点后猜字段,可用?order by 1?猜解,order by不可用时,可用union?联合查询! 我这里猜解到的字段是22, 上图: 接下...
分类:
数据库 时间:
2014-09-10 12:46:50
阅读次数:
415
struct epoll_event 的data成员是一个union类型里面要么就是fd,要么就是ptr最好不要一会用ptr一会用fd最好坚持从头到尾的使用一个第一种只是使用epoll_event.data.fd#include #include #include #include #include...
分类:
其他好文 时间:
2014-09-09 22:50:29
阅读次数:
293
原文:http://blog.csdn.net/lwei_998/article/details/6093807The UNION operator returns only distinct rows that appear in either result,while the UNION ALL...
分类:
其他好文 时间:
2014-09-09 15:53:08
阅读次数:
240
SELECT--UNION,UNION ALL,MINUS, INTERSECT返回两个查询结果的集合操作,两个查询结果集必须字段相同。UNION和UNION ALL并集操作,UNION并集后去掉重复结果,UNION ALL直接并集MINUS差集操作INTERSECT交集操作SQL> select ...
分类:
其他好文 时间:
2014-09-09 11:20:08
阅读次数:
266
set可以对键值是自动排序的,对应的求并集差集交集都可以用到这个有序的特性,时间复杂度都为O(m+n),m,n分别为两个容器的大小
1.set_union可以用来求两个集合的并集,它是一种稳定的操作,因为元素间的相对位置不会改变。
源码如下:
template
OutputIterator set_union(InputIterator1 first1,InputIterator1 las...
分类:
其他好文 时间:
2014-09-07 22:31:48
阅读次数:
175
Union Find
动态链接:
这里union(x,y) 相当于一个函数,这个函数建立两个点,x,y的链接。而connected(x,y)用于检测两点的链接性,即是否处于链接状态.
connected(0,7)就是用于检测0,7这两点是否相连。
Union find能做很酷帅的事情,迷宫连通图的查找~...
分类:
其他好文 时间:
2014-09-07 12:21:33
阅读次数:
281
/**
* 书本:【ThinkingInC++】
* 功能:联合
* 时间:2014年9月6日14:51:40
* 作者:cutter_point
*/
#include
using namespace std;
union U
{
private:
int i;
float f;
public:
U(int a);
U(float b);
~U();...
分类:
编程语言 时间:
2014-09-06 16:11:43
阅读次数:
267