简单程序连接,高悬赏分120

来源:百度知道 编辑:UC知道 时间:2024/06/01 02:37:11
#include<stdio.h>
#include"conio.h"
#include"string.h"
#include<stdlib.h>
int IDcheck(){
char pass_str[10];
char input;
printf("Welcome to this system.Please firstly input your password:\n");
gets(pass_str);
while(strcmp(pass_str,"888888")!=0){
printf("Password Error!\n");
printf("If you want to input again?Y or N\n\t");
if(input=='Y') {
printf(" input your numbers again !");
gets(pass_str);}
else
return 0;
}
return 1;
}

void kkkkk()
{
int a[11];
int i,j,t;
printf("Please input 10 nembers:\n");
for(i=1;i<=10;i++)
scanf("%d",&a[i]);
printf("\n");
for(j=1;j<=9;j++)
for(i=1;i<=10;i++)
if(a[i]>a[i+1]){
t=a[i];a[i]=a[i+1];a[i+1]=t;}<

void main()
{
char ch;

if(IDcheck()){
while(ch!='0'){
system ("cls");
printf("\n=======main=======");
printf("\n 1.print the numbers");
printf("\n 2.recharge the traffic card");
printf("\n 3.recharge the traffic card");
printf("\n 0.exit");
printf("\n==================");
printf("\n your choice:");
ch=getch();
if(ch=='1') {
kkkkk();
}
if(ch=='2'){
psum();
}
if(ch=='3'){
mmmmm();
}
}
}
}

其他函数不用动,不过你的程序貌似有问题啊