This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#include<stdio.h>
#include<string.h>
int main(void)
{
int n;
char words[100][100][100];
char word[100];
char password[100];
while (scanf("%d", &n) != EOF)
getchar();
if (n == 1)
int i = 0;
gets(word);
gets(password)
while (words[i][0][0] != '\0')
if (strcmp(words[i][0], word) == 0 && strcmp(words[i][1], password) == 0)
scanf("%d", &n);
switch(n)
case 1:
break;
case 2:
case 3:
default:
printf("您输入的数字不正确,请输入1,2,3中的任意一个数\n");
}
i++;
else if(n == 0)
else
printf("您输入的数字不正确,请输入0,1中的其中一个数\n");
return 0;