【C语言】身份证管理系统【5】
合集下载
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
/*====================Calculate the Population of the same birth===================*/
ID_Birth_Number_Count(head,language);
case 10:
goto BACK;
break;
case 6:
/*====================Deletion=====================*/
if(language)
printf("●Input the ID Number:\n");
else
printf("●请输入身份证号:\n");
else
printf("●你的输入不合法!:\n");
system("cls");
break;
};
ID_WriteToTest(head,language);
break;
case 2:
/*====================Display the ID Information===================*/
scanf("%s",&ID_Number);
ID_Deletion(head,ID_Number);
ID_WriteToTest(head,language);
system("cls");
printf("\n OK\n");
getch();
break;
char Pro_Number[40];//for choice (3)
char Area_Number[40];//for choice (4)
char Sex[40];//for choice(7)
IdentityInfor *head,*ID;//point of ID for temp use,then free
else
printf("●请输入身份证号:\n");
scanf("%s",&ID_Number);
ID=ID_Search(head,ID_Number,language);//Search the ID
ID_Revise(ID,language);
ID_WriteToTest(head,language);
getch();
break;
case 2:
ID_InputInformation(head,language);
getch();
break;
default:
if(language)
printf("●Illegal input!:\n");
Option_Menu_Chinese();//Chinese Options
}
else
goto BACK;
if(language)
printf("●Input the order:\n");
else
printf("●请输入选项:\n");
scanf("%d",&select);//Choice
printf("●请输入性别:\n");
scanf("%s",Sex);
ID_Sex_Count(head,Sex,language);//Count the number of the people of a certain Province
break;
case 8:
else
printf("●请输入省份(直辖市或自治区)编号:\n");
scanf("%s",Pro_Number);
ID_Pro_Number_Count(head,Pro_Number,language);//Count the number of the people of a certain Province
else
printf("\n ◎1.简洁输入\n ◎2.完全输入\n\n●请输入你的选择:");
scanf("%d",&choice);
switch(choice)
{ ห้องสมุดไป่ตู้
case 1:
ID_Judge_Input(head,language);
system("cls");
switch(select)
{
case 0:
break;
case 1:
if(language)
printf("\n ◎1.Easy input\n ◎2.Fullly input\n\n●Input your choice:");
head=(IdentityInfor *)malloc(sizeof(IdentityInfor));//Inital
head->next=NULL;
BACK:
Menu_Language_Select();
scanf("%d",&language);//input the Munu language
else
printf("●请输入地区编号:\n");
scanf("%s",Area_Number);
ID_Area_Number_Count(head,Area_Number,language);//Count the number of the people of a certain Province
break;
else
{
ID=ID_Search(head,ID_Number,language);//Search the ID
ID_Display(ID,language);//print the node
getch();
break;
default:
if(language)
printf("●Error,Please input again!\n");
else
printf("●错误,请重新输入!:\n");
break;
}
}while(select);
}
system("cls");
if(language==1)
Menu_Welcome_English(language);
else if(language==0)
Menu_Welcome_Chinese(language);
else
goto BACK;
do{
/*NotMain.c*/
#include "Head.h"
void main()
{
int select=1,choice;//select the options
int language=1;//select the language
char ID_Number[40];//for choice (2)&(5)&(6)
getch();
break;
case 4:
/*====================Calculate the Population of the Area===================*/
if(language)
printf("●Input the Area Number:\n");
}
case 3:
/*====================Calculate the Population of the Provence===================*/
if(language)
printf("●Input the Province Number:\n");
system("cls");
if(language==1)
{ system("cls");
Option_Menu_English();//English Options
}
else if(language==0)
{
system("cls");
if(language)
printf("●Input the ID Number:\n");
else
printf("●请输入身份证号:\n");
scanf("%s",ID_Number);
if(ID_Search(head,ID_Number,language)==0)
case 7:
/*====================Calculate the Population of the same sex===================*/
if(language)
printf("●Input sex:\n");
else
getch();
break;
case 5:
/*====================Revise the ID Information=====================*/
if(language)
printf("●Input the ID Number:\n");
ID_Birth_Number_Count(head,language);
case 10:
goto BACK;
break;
case 6:
/*====================Deletion=====================*/
if(language)
printf("●Input the ID Number:\n");
else
printf("●请输入身份证号:\n");
else
printf("●你的输入不合法!:\n");
system("cls");
break;
};
ID_WriteToTest(head,language);
break;
case 2:
/*====================Display the ID Information===================*/
scanf("%s",&ID_Number);
ID_Deletion(head,ID_Number);
ID_WriteToTest(head,language);
system("cls");
printf("\n OK\n");
getch();
break;
char Pro_Number[40];//for choice (3)
char Area_Number[40];//for choice (4)
char Sex[40];//for choice(7)
IdentityInfor *head,*ID;//point of ID for temp use,then free
else
printf("●请输入身份证号:\n");
scanf("%s",&ID_Number);
ID=ID_Search(head,ID_Number,language);//Search the ID
ID_Revise(ID,language);
ID_WriteToTest(head,language);
getch();
break;
case 2:
ID_InputInformation(head,language);
getch();
break;
default:
if(language)
printf("●Illegal input!:\n");
Option_Menu_Chinese();//Chinese Options
}
else
goto BACK;
if(language)
printf("●Input the order:\n");
else
printf("●请输入选项:\n");
scanf("%d",&select);//Choice
printf("●请输入性别:\n");
scanf("%s",Sex);
ID_Sex_Count(head,Sex,language);//Count the number of the people of a certain Province
break;
case 8:
else
printf("●请输入省份(直辖市或自治区)编号:\n");
scanf("%s",Pro_Number);
ID_Pro_Number_Count(head,Pro_Number,language);//Count the number of the people of a certain Province
else
printf("\n ◎1.简洁输入\n ◎2.完全输入\n\n●请输入你的选择:");
scanf("%d",&choice);
switch(choice)
{ ห้องสมุดไป่ตู้
case 1:
ID_Judge_Input(head,language);
system("cls");
switch(select)
{
case 0:
break;
case 1:
if(language)
printf("\n ◎1.Easy input\n ◎2.Fullly input\n\n●Input your choice:");
head=(IdentityInfor *)malloc(sizeof(IdentityInfor));//Inital
head->next=NULL;
BACK:
Menu_Language_Select();
scanf("%d",&language);//input the Munu language
else
printf("●请输入地区编号:\n");
scanf("%s",Area_Number);
ID_Area_Number_Count(head,Area_Number,language);//Count the number of the people of a certain Province
break;
else
{
ID=ID_Search(head,ID_Number,language);//Search the ID
ID_Display(ID,language);//print the node
getch();
break;
default:
if(language)
printf("●Error,Please input again!\n");
else
printf("●错误,请重新输入!:\n");
break;
}
}while(select);
}
system("cls");
if(language==1)
Menu_Welcome_English(language);
else if(language==0)
Menu_Welcome_Chinese(language);
else
goto BACK;
do{
/*NotMain.c*/
#include "Head.h"
void main()
{
int select=1,choice;//select the options
int language=1;//select the language
char ID_Number[40];//for choice (2)&(5)&(6)
getch();
break;
case 4:
/*====================Calculate the Population of the Area===================*/
if(language)
printf("●Input the Area Number:\n");
}
case 3:
/*====================Calculate the Population of the Provence===================*/
if(language)
printf("●Input the Province Number:\n");
system("cls");
if(language==1)
{ system("cls");
Option_Menu_English();//English Options
}
else if(language==0)
{
system("cls");
if(language)
printf("●Input the ID Number:\n");
else
printf("●请输入身份证号:\n");
scanf("%s",ID_Number);
if(ID_Search(head,ID_Number,language)==0)
case 7:
/*====================Calculate the Population of the same sex===================*/
if(language)
printf("●Input sex:\n");
else
getch();
break;
case 5:
/*====================Revise the ID Information=====================*/
if(language)
printf("●Input the ID Number:\n");