rcmp(s,password)) //进行密码匹配验证Р {Р flag=1;Р break;Р }Р elseР {Р printf("\n\nError! You only have %d times! Enter again:\n",i-1);Р i--;Р } Р }Р?while(i>0);Р if(!flag)Р {Р printf("you have Enter 3 times!"); //输入密码超过了3次!!Р exit(0); //自动退出Р }Р doР {Р system("cls");Р puts("\n\n\t\t*********************管理员菜单***********************\n\n");Р puts("\t\t\t\t1---浏览课程\n");Р puts("\t\t\t\t2---查询课程\n");Р puts("\t\t\t\t3---添加课程\n");Р puts("\t\t\t\t4---删除课程\n");Р puts("\t\t\t\t5---返回主菜单");Р puts("\n\n\t\t******************************************************\n");Р printf("Chiose your number(1-5):[ ]\b\b");Р scanf("%d",&n);Р switch(n)Р {Р case 1:prin();Р break;Р case 2:search();Р break;Р case 3:insert();Р savefile();Р break;Р case 4:del();Р savefile();Р break;Р case 5:return;Р default:;Р } Р }Р while(w==1);Р}