- 博客(6)
- 资源 (4)
- 收藏
- 关注
Redis学习
static int readBytes(void *target, long num) { char peek = (num < 0) ? 1 : 0; num = (num < 0) ? -num : num; pos p = positions[level]; if (p.offset + num > p.s...
2016-01-19 16:31:31 74
原创 【Redis学习】 getRandomHexChars 生成不同的RunID
void getRandomHexChars(char *p, unsigned int len) { char *charset = "0123456789abcdef"; unsigned int j; /* Global state. */ static int seed_initialized = 0; static unsigned char seed[20]; /* The SHA1
2016-01-15 11:05:37 167
原创 C++指针的问题
#include "stdafx.h"#include "iostream"using namespace std;class A { int i;};class B { A *p;public: B() { p = new A; } ~B() { delete p; }};void sayHello(B b) {}int main() { B b; sayHe
2016-01-11 13:30:41 183
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人