(1)读取Built-in'file -> settings -> Enrionment -> variable type 为 Built-inos=Environment.Value("OS")os_version=Environment.Value("OSVersion")Msgboxos&os...
分类:
其他好文 时间:
2014-10-29 16:36:11
阅读次数:
410
POJ 1422 Air Raid
题目链接
题意:给定一个有向图,在这个图上的某些点上放伞兵,可以使伞兵可以走到图上所有的点。且每个点只被一个伞兵走一次。问至少放多少伞兵
思路:二分图的最小路径覆盖,每个点拆成两个点,然后根据有向边连边,然后答案为n - 最大匹配数
代码:
#include
#include
#include
#include
using ...
分类:
其他好文 时间:
2014-10-29 12:57:48
阅读次数:
175
??
A variable of a
reference type does not contain its data directly; it contains a reference to its data.
When you pass a reference-type parameter by value, it is possible to change the data poin...
使用vs2012/2013配置opencv编译出现问题:1>------ 已启动生成: 项目: Win32ForOpenCV245, 配置: Debug Win32 ------1> stdafx.cpp1> Win32ForOpenCV245.cpp1>f:\softs\opencv245\ope...
分类:
其他好文 时间:
2014-10-28 17:38:10
阅读次数:
229
It's often useful to store related values together in a single variable. To do so you create array which is similar to a list. Let's indulge my passio...
分类:
其他好文 时间:
2014-10-28 15:16:56
阅读次数:
150
我遇到如下问题:
int count=0;
listener->onTouchMoved=[count](Touch* t,Event* e){
count++;
log("onTouchMoved");
};
Xcode下的编译错误为:Cannot assign to a variable captured by copy...
分类:
编程语言 时间:
2014-10-28 13:58:42
阅读次数:
166
\opencv2\flann\logger.h(66): error C4996: 'fopen': This function or variable may be unsafe. 解决方法...
分类:
其他好文 时间:
2014-10-28 13:54:18
阅读次数:
211
RAID 0 是指磁盘分段(Disk Striping)技术其实现方法为将数据分段,同时写到多个磁盘上。其优点是磁盘可以实现并行的输入和输出,提高磁盘读写速度,但是这种技术无容错性能;RAID 1是指磁盘镜像(Disk Mirroring)技术其实现方法是简单地将一个磁盘上的数据简单地拷贝到第二个磁...
分类:
其他好文 时间:
2014-10-28 13:40:07
阅读次数:
223
In common with other programming languages, PHP uses the term string to refer to text. When you store a string in a variable, you need to enclose it i...
分类:
其他好文 时间:
2014-10-28 11:46:02
阅读次数:
133