标签:strcmp
#include <stdio.h> #include <string.h> int main () { char ch[100]; gets(ch); if (strcmp(ch,"guruichun")==0) { printf("输入正确\n"); return 1; } printf("输入错误\n"); return 0; }
库函数strcmp功能
原文地址:http://10706002.blog.51cto.com/10696002/1710570