提交 2e40ff20 创建 作者: 宋海霞's avatar 宋海霞

modify

上级 4b20ab42
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
#define HASH_LEN 20 // The length of the hash table #define HASH_LEN 20 // The length of the hash table
// Hash table // Hash table
typedef struct hterm{ typedef struct hterm
{
int key; // keyword int key; // keyword
int si; // The number of rehashes int si; // The number of rehashes
}HASH; }HASH;
......
...@@ -18,7 +18,7 @@ int main(int argc, char* argv[]) ...@@ -18,7 +18,7 @@ int main(int argc, char* argv[])
Hash(KeyArray, length); Hash(KeyArray, length);
printf("\nSubscript\tRehashesCount\tKeyword\t\n"); printf("\nSubscript\tRehashesCount\tKeyword\t\n");
for(i = 0; i<HASH_LEN; i++) for (i = 0; i<HASH_LEN; i++)
{ {
printf("%d", i); printf("%d", i);
printf("\t\t\t%d", HashList[i].si); printf("\t\t\t%d", HashList[i].si);
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论