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

modify

上级 81b5aa4e
......@@ -10,13 +10,13 @@ int main(int argc, char* argv[])
int i;
//
// 初始化关键字数组
// Initializes the keyword array
//
int KeyArray[] = {5, 14, 35, 54, 79, 75, 94, 27, 55, 11, 15, 79};
int length = sizeof(KeyArray)/sizeof(KeyArray[0]);
//
// 构造哈希表
// Construct the hash table
//
Hash(KeyArray, length);
......@@ -33,22 +33,22 @@ int main(int argc, char* argv[])
}
/*
功能:
用给定的一组关键字数组构造哈希表。
function:
Construct a hash table with a given set of keywords.
参数:
KeyArray -- 关键字数组指针
length -- 数组的长度
parameter:
KeyArray -- Keyword array pointer
length -- The length of the array
*/
void Hash(int* KeyArray, int length)
{
int i, j; // 游标
int address; // 哈希地址
int count; // 再散列次数
int newaddress; // 新哈希地址
int i, j; // The cursor
int address; // Hash address
int count; // The number of rehashes
int newaddress; // New hash address
//
// TODO: 在此添加代码
// TODO: Add the code here
//
}
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论