该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
int CreateTicketDB(DBADMININFO* mi)
{
char strINFO[MAX_LEN];
mi->nP62 = (int)GetNumberFromInput("please input total number of P62 Plane:", strINFO);
mi->stPlane62.nPrice = GetNumberFromInput("Please input price of ticket P62 Plane:", strINFO);
mi->stPlane62.ID= (int) GetNumberFromInput("please input NO. Of P62 Plane:", strINFO);
printf("Please input start place of P62 plane:");
gets(strINFO);
strcpy(mi->stPlane62.Sources, strINFO) ;
printf("please input destination of P62 Plane:");
gets(strINFO);
strcpy(mi->stPlane62.Dest, strINFO) ;
printf("please input start time of p62 plane:");
gets(strINFO);
strcpy(mi->stPlane62.Date , strINFO) ;
mi->nP124 = (int)GetNumberFromInput("please input total number of P124 Plane:", strINFO);
mi->stPlane124.nPrice = GetNumberFromInput("Please input price of ticket P124 Plane:", strINFO);
mi->stPlane124.ID= (int) GetNumberFromInput("please input NO. Of P124 Plane:", strINFO);
printf("Please input start place of P62 plane:");
gets(strINFO);
strcpy(mi->stPlane124.Sources, strINFO) ;
printf("please input destination of P124 Plane:");
gets(strINFO);
strcpy(mi->stPlane124.Dest, strINFO) ;
printf("please input start time of P124 plane:");
gets(strINFO);
strcpy(mi->stPlane124.Date , strINFO) ;
if(!WritePlaneInfoToFile(FILENAME62, mi))
printf("Create Databse Failed!\n");
else
{
printf("Create Database successfully!\n");
CopyAllStruct(&DI, &TI, &MI);
}
return 1;
}
这是代码中的一小段,请各位评价一�