2009-04-15 回答
我靠!~~~你不会自己看书吗?
#include
main(){
int i;
int num=123;
printf("\t\t\t qing xuan ze ni yao de fu wu\n");
printf("\n\n");
printf("\t\t-----------------------------------\n");
printf("\t\t|\t\t|\t\t |\n");
printf("\t\t| 1. cha xun\t| 2. qu kuan\t |\n");
printf("\t\t|\t\t|\t\t |\n");
printf("\t\t-----------------------------------\n");
printf("\t\t|\t\t|\t\t |\n");
printf("\t\t| 3. zhuang zhang\t| 4. xiu gai mi ma |\n");
printf("\t\t|\t\t|\t\t |\n");
printf("\t\t-----------------------------------\n");
printf("\t\t|\t\t\t\t |\n");
printf("\t\t|\t 0. tui chu \t\t |\n");
printf("\t\t|\t\t\t\t |\n");
printf("\t\t-----------------------------------\n");
printf("please input the numbers:");
scanf("%d",&i);
if(i==num){
printf("welcome you use your count");
}
else if(i!=num)
{printf("your secret code is wrong,please input the correct secret code!\n");
}
}getch();