char* str1 = "abcdef";char str2[100] = {0};while(strcmp(str1, str2) != 0){ printf("输入密码:"); gets(str2);}printf("你成功啦!");