摘要: Hash表#ifndef _HASH_H#define _HASH_H#include#includeclass HashTable{public: HashTable(unsigned int size); ~HashTable(); int get(const char *ke... 阅读全文
posted @ 2014-08-31 16:24 米其林轮船 阅读(255) 评论(0) 推荐(0) 编辑
摘要: for循环中的i,如果倒过来判断从某数一直到0,一定不能用unsigned int类型的i,因为unsigned int不可能小于0,当i=0后,i--将达到最大的unsigned int,依旧>=0,注意。 阅读全文
posted @ 2014-08-31 16:20 米其林轮船 阅读(421) 评论(0) 推荐(0) 编辑