1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#include<cstring>
int () { char str[16]; int Case = 1; while (fgets(str, 16, stdin) && str[0] != '#') { printf("Case %d: ", Case++); if (!strcmp(str, "HELLOn")) puts("ENGLISH"); else if (!strcmp(str, "HOLAn")) puts("SPANISH"); else if (!strcmp(str, "HALLOn")) puts("GERMAN"); else if (!strcmp(str, "BONJOURn")) puts("FRENCH"); else if (!strcmp(str, "CIAOn")) puts("ITALIAN"); else if (!strcmp(str, "ZDRAVSTVUJTEn")) puts("RUSSIAN"); else puts("UNKNOWN"); }
return 0; }
|
近期评论