|
|
@ -16,32 +16,32 @@ int main(void)
|
|
|
|
gets(password)
|
|
|
|
gets(password)
|
|
|
|
while (words[i][0][0] != '\0')
|
|
|
|
while (words[i][0][0] != '\0')
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (strcmp(words[i][0], word) == 0 && strcmp(words[i][1], password) == 0)
|
|
|
|
if (strcmp(words[i][0], word) == 0 && strcmp(words[i][1], password) == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
scanf("%d", &n);
|
|
|
|
scanf("%d", &n);
|
|
|
|
getchar();
|
|
|
|
getchar();
|
|
|
|
switch(n)
|
|
|
|
switch(n)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case 1:
|
|
|
|
case 1:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
case 2:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
case 3:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
printf("您输入的数字不正确,请输入1,2,3中的任意一个数\n");
|
|
|
|
printf("您输入的数字不正确,请输入1,2,3中的任意一个数\n");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
i++;
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if(n == 0)
|
|
|
|
else if(n == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
printf("您输入的数字不正确,请输入0,1中的其中一个数\n");
|
|
|
|
printf("您输入的数字不正确,请输入0,1中的其中一个数\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|