From dd878faa55cb86441f3a83597e2f875a5f75542a Mon Sep 17 00:00:00 2001 From: m59637281 <18408000220@stu.hut.edu.cn> Date: Fri, 4 Jan 2019 09:07:31 +0800 Subject: [PATCH] frame --- frame.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ test.c | 7 ------- test.exe | Bin 27930 -> 0 bytes test.o | Bin 632 -> 0 bytes 4 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 frame.c delete mode 100644 test.c delete mode 100644 test.exe delete mode 100644 test.o 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 8172fe03cc3ed0c7a6320c85409aae5789e39eab..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 27930 zcmeHw4|H4AndgDI|`aC?*6ll_JZrf@}**PE1JqB1^I(BFi4> zIe!?=Oj5^y>!#zDPKWJ*JxPZtOxwe9kGRec2jgmD(4!^4)kSX{jPW{lNnH5JxNz~DC0_HT+JO3SN}jF zS-*JkBDWMB4low7Rj`Lgm)TeoV}o|a&awrza+|%DRf6aS9Dwcn7|zu=TsX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