/*
* icvGetAuxImages
*作用:计算原图像的积分图,旋转积分图,平方积分图和归一化因子
*/
static
void icvGetAuxImages( CvMat* img, //原图像
CvMat* sum, //所求积分图
...
分类:
其他好文 时间:
2015-07-20 16:39:19
阅读次数:
175
1. 指向指针的引用
#include
#include
using namespace std;
// int *&lhs 的定义应该从右向左理解:
// lhs 是一个引用,与指向 int 的指针相关联。
// 也就是说,lhs 是传递进 ptrswap 函数的指针的别名。
// 注意:不能这样定义:int &*lhs,编译报错提示为:cant declare pointer to “i...
分类:
其他好文 时间:
2015-07-20 16:36:50
阅读次数:
91
Root
using UnityEngine;
using System.Collections;
public class RootScript : MonoBehaviour {
public GameObject profab;
void Awake()
{
Debug.Log(Time.time + "Root Awake");
}...
分类:
其他好文 时间:
2015-07-20 16:37:04
阅读次数:
96
最近在用chrome调试页面时,一刷新页面总会自动打断点。自己鼓捣了一下,发现
把它改为这个样子的时候就可以解决这个问题,即把调试面板上的第5个按钮从Deactivate breakpoints 改成Activate breakpoints....
分类:
其他好文 时间:
2015-07-20 16:33:36
阅读次数:
218
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times.You may assume that the array is non-empty and the majority element always...
分类:
其他好文 时间:
2015-07-20 16:32:57
阅读次数:
126
代码:
// linkqueue.hpp
// 队列类
#pragma once
#include "linklist.hpp"
template
class LinkQueue
{
public:
LinkQueue();
~LinkQueue();
public:
int clear();
int append(T &t);
int retieve(T &t);
int ...
分类:
其他好文 时间:
2015-07-20 16:34:22
阅读次数:
86
public class Test {
/*break---输出结果:
value = 0
value = 1
value = 2
如果是return,则不会打印!
*return---输出结果:
value = 0
value = 1
value = 2
*continue---
value = 0
value = 1
value = 2...
分类:
其他好文 时间:
2015-07-20 16:34:49
阅读次数:
106
必须设置
vm.overcommit_memory = 1...
分类:
其他好文 时间:
2015-07-20 16:34:39
阅读次数:
201
之前的样式,这个“未选择文件”很想把它去掉吧?
这段代码的运行结果,去掉了“未选择文件”
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">
无标题文档
#file{ width:226px; height:25px; ...
分类:
其他好文 时间:
2015-07-20 16:32:35
阅读次数:
107
题目链接:点击打开链接
题目大意:给出n个建筑的位置x和高度y,蜘蛛侠从第一个建筑到最后一个建筑去救人,要使用蛛丝荡过去,每次都到相同的高度,而且在过程中不能擦到地面,问最少的使用蛛丝的次数。(按x的顺序输入)
数据太吓人,按坐标dp,直接枚举建筑物能控制的范围,找到到达第i个坐标的最小次数。注意只要能到达最后或超过最后的建筑都算可以。
#include
#include
#includ...
分类:
其他好文 时间:
2015-07-20 16:34:11
阅读次数:
101
Maximum Gap: https://leetcode.com/problems/maximum-gap/
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Ret...
分类:
其他好文 时间:
2015-07-20 16:34:03
阅读次数:
158
一、什么叫inline函数?
inline(小心,不是online),翻译成“内联”或“内嵌”。使用来替代“宏“的
意指:当编译器发现某段代码在调用一个内联函数时,它不是去调用该函数,而是将该函数的代码,整段插入到当前位置。
好处:省去了调用的过程,加快程序运行速度。(函数的调用过程,由于有前面所说的参数入栈等操作,所以总要多占用一些时间)。
不好处:由于每当代码调用到内联函数,就需要在...
分类:
其他好文 时间:
2015-07-20 16:32:42
阅读次数:
116
??
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
...
分类:
其他好文 时间:
2015-07-20 16:32:49
阅读次数:
125
Given an integer array of size n, find all elements that appear more than ? n/3 ? times. The algorithm should run in linear time and in O(1) space.Hint:How many majority elements could it possibly hav...
分类:
其他好文 时间:
2015-07-20 16:28:47
阅读次数:
133
前言
mac升级到10.11版本并安装Xcode7.0Beta之后,Dock中的Xcode6.3图标上出现一个禁止符号,打开提示到App store更新最新版本,更新到6.4之后问题依旧,还是提示更新版本,但6.4已是最新版本,整个陷入死循环。只好先用Xcode7.0Beta版做开发和发布,但是测试版打出的包可以上传itunes connect,但没法提交审核。最后,还是要使用Xcode6.4。...
分类:
其他好文 时间:
2015-07-20 16:31:07
阅读次数:
149
Cocos2d-x Vector —— vector iterators incompatible...
分类:
其他好文 时间:
2015-07-20 16:27:56
阅读次数:
96
http://www.laruence.com/2015/05/14/3021.html, 鸟哥文章
看了这个文章,更加要小心的对待 Yaf Yar 框架了。
不对 glib 有一定的了解进来就是深坑啊。
我只是一般性的使用 c 对内部了解有限的。所以一定不能轻入。
希望想入的人,有心理准备。
祝好运...
分类:
其他好文 时间:
2015-07-20 16:30:24
阅读次数:
116