摘要:
#include <stdio.h>#include <stdlib.h>#define M 13typedef struct list { int key; struct list *next;}node,*link;node hashtab[M];int h(int key){return key%M;}void built(int key){link m;link n;int index;n=(link)malloc(sizeof(node));n->key=key;n->next=NULL;index=h(key);m=hashtab[index]. 阅读全文
posted @ 2009-12-20 20:06 little健健 阅读(138) 评论(0) 推荐(0) 编辑