diff --git a/frame.c b/frame.c new file mode 100644 index 0000000..d6d6ae1 --- /dev/null +++ b/frame.c @@ -0,0 +1,47 @@ +#include +#include +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); + getchar(); + switch(n) + { + case 1: + break; + case 2: + break; + case 3: + break; + default: + printf("您输入的数字不正确,请输入1,2,3中的任意一个数\n"); + break; + } + } + i++; + } + } + else if(n == 0) + { + + } + else + printf("您输入的数字不正确,请输入0,1中的其中一个数\n"); + } + return 0; +} diff --git a/test.c b/test.c deleted file mode 100644 index d8636d2..0000000 --- a/test.c +++ /dev/null @@ -1,7 +0,0 @@ -#include - -int main(void) -{ - printf("Hello World"); - return 0; -} diff --git a/test.exe b/test.exe deleted file mode 100644 index 8172fe0..0000000 Binary files a/test.exe and /dev/null differ diff --git a/test.o b/test.o deleted file mode 100644 index b3a5dc2..0000000 Binary files a/test.o and /dev/null differ