while(scanf("%d",&key) != EOF)
{
int HashValue = key;
int Clash = 0;
while (HashTable[Hash(HashValue, m)] != 0)
{
HashValue++;
Clash++;
}
HashTable[Hash(HashValue, m)] = key;
SL += Clash + 1;
}
输入1 14^z后调试发现1循环结束后循环一直在循环14,而输入
1 14
^z
^z
^z
才会正常停止循环
这是为什么??