#include using namespace std;#define DESTROY_POINTER(ptr) if (ptr) { delete ptr; ptr = NULL; } class Product{public: virtual void Action()=0;};clas...
分类:
其他好文 时间:
2014-12-11 12:17:14
阅读次数:
177
看别人的博客一万次记忆效果也没那么好,还是自己动手写写吧!function CreateThread( lpThreadAttributes: Pointer; {安全设置} dwStackSize: DWORD; {堆栈大小:0是系统默认的大小} lpStartAddress: TFNThread...
分类:
编程语言 时间:
2014-12-11 00:14:48
阅读次数:
271
1、redis中的缓存数据并不是都在内存中,redis在maxmemory或vm开启并且vm-max-memory到达上限时出发置换操作用swap机制将部分value对象(冷数据)转移至磁盘,同时将redisobj替换成VM pointer对象,标识value值在磁盘的存储位置,分有阻塞跟非阻塞机制...
分类:
系统相关 时间:
2014-12-10 22:47:56
阅读次数:
228
Hi, I find GYP's bug when dealing with GYP_DEFINES env variables override.
I was having a successfully android build, and i wanted to enable profiler support, so i followed the
http://www.chromi...
分类:
其他好文 时间:
2014-12-10 10:50:08
阅读次数:
172
当我们讨论指针时,通常假设它是一种可以用 void * 指针来表示的东西,在
x86_64 平台下是 8 个字节大小。例如,下面是来自 维基百科中关于 x86_64 的文章 的摘录:
Pushes and pops on the stack are always in 8-byte strides, and pointers are 8 bytes wide.
从 CPU 的角...
分类:
编程语言 时间:
2014-12-09 23:06:35
阅读次数:
293
Given a binary tree
struct TreeLinkNode {
TreeLinkNode *left;
TreeLinkNode *right;
TreeLinkNode *next;
}
Populate each next pointer to point to its next right node. ...
分类:
其他好文 时间:
2014-12-09 17:58:42
阅读次数:
186
#include using namespace std;#define DESTORY_POINTER(ptr) if (ptr) { delete ptr; ptr = NULL; }class ProductFamilyA{public: virtual ~ProductFamilyA(...
分类:
其他好文 时间:
2014-12-08 19:09:50
阅读次数:
176
【题目】
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,...
分类:
移动开发 时间:
2014-12-08 15:32:44
阅读次数:
233
源码如下: template struct __is_pointer_helper : public false_type { }; template struct __is_pointer_helper : public true_type { }; /// is_p...
分类:
编程语言 时间:
2014-12-08 12:06:01
阅读次数:
200
Given a binary tree
struct TreeLinkNode {
TreeLinkNode *left;
TreeLinkNode *right;
TreeLinkNode *next;
}
Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set t...
分类:
其他好文 时间:
2014-12-05 22:47:04
阅读次数:
271