?? qvdict.h
字號:
#ifndef _QV_DICT_
#define _QV_DICT_
#include <QvBasic.h>
#include <QvString.h>
#include <QvPList.h>
class QvDictEntry {
private:
u_long key;
void * value;
unsigned char boolDelete;
QvDictEntry * next;
QvDictEntry(u_long k, void *v) { key = k; value = v; boolDelete = FALSE;};
friend class QvDict;
};
class QvDict {
public:
QvDict( int entries = 251 );
~QvDict();
void clear();
QvBool enter(u_long key, void *value, unsigned char boolDelete = FALSE);
QvBool find(u_long key, void *&value) const;
QvBool remove(u_long key);
private:
int tableSize;
QvDictEntry * *buckets;
QvDictEntry *& findEntry(u_long key) const;
};
#endif /* _QV_DICT_ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -