题解 | #登录验证#
登录验证
http://www.nowcoder.com/practice/799daf76369c4fb1a2e2d56f885225ae
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> int main() { char a[100]; while (scanf("%[^\n]%*c", a) != EOF) { if (strcmp(a, "admin admin") == 0 ) printf("Login Success!"); else printf("Login Fail!"); } return 0; }