#include<stdio.h>
#include <stdlib.h>
main()
{
int choice;int Y,N;
char name,gender,address,telephone,number,time;
int age;
while(1)
{
//system("cls");
printf("
*******************************************
* *
* 欢迎进入会员信息修改界面 *
* *
*******************************************
");
printf("\n\t请输入要修改的信息的会员的编号:");
scanf("%s",&number);
printf("
**********************
会员信息
1.会员姓名
2.会员编号
3.会员性别
4.会员住址
5.会员电话
6.会员年龄
7.会员入会时间
************************
\n");
do{
scanf("%d",&choice);
}while(choice<1||choice>8);
switch(choice)
{
case 1:
printf("修改会员姓名:");
scanf("%s",&name);
printf("是否修改:");
scanf("%d",&Y||N);
system("CLS");
break;
case 2:
printf("修改会员编号:");
scanf("%s",&number);
printf("\n\t\tPress any key to return to the Menu...");
system("CLS");
break;
case 3:
printf("修改会员性别:");
scanf("%s",&gender);
printf("\n\t\tPress any key to return to the Menu...");
system("CLS");
break;
case 4:
printf("修改会员住址:");
scanf("%s",&address);
printf("\n\t\tPress any key to return to the Menu...");
system("CLS");
break;
case 5:
printf("修改会员电话:");
scanf("%s",&telephone);
printf("\n\t\tPress any key to return to the Menu...");
system("CLS");
break;
case 6:
printf("修改会员年龄:");
scanf("%s",&age);
printf("\n\t\tPress any key to return to the Menu...");
system("CLS");
break;
case 7:
printf("修改会员入会时间:");
scanf("%s",&time);
printf("\n\t\tPress any key to return to the Menu...");
system("CLS");
break;
default:
printf("\n\t\t\t\t\t\t\t\t输入无效,请您重新输入......");
}
}
}
基本上这些了,帮忙修改和加一下修改是否成功
谢谢啦