freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

民航訂票系統(tǒng)設(shè)計(jì)_二級(jí)課程設(shè)計(jì)報(bào)告_-閱讀頁(yè)

2025-06-22 01:01本頁(yè)面
  

【正文】 char str[10]={0}。 FlightInfo *p。 tatol=GetPrivateProfileInt( 航班數(shù)量 , 總數(shù),0,./)。 fclose(fp)。 WritePrivateProfileString( 航班數(shù)量 , 總數(shù),str,./)。 sprintf(flightInfo,航班信息 %d,i)。 WritePrivateProfileString(flightInfo, 航 線 起 始 站,pRouteStart,./)。 WritePrivateProfileString(flightInfo, 起 飛 時(shí) 間,pDeparturesTime,./)。 memset(str,0,10)。 WritePrivateProfileString(flightInfo, 載 客 額 定,str,./)。 p=pnext。 FlightInfo flight。 printf( 航班號(hào) 航線起始站 航線終點(diǎn)站 起飛時(shí)間 到達(dá)時(shí)間 載客額定 \n)。 for (i=0。i++) { memset(str,0,20)。 memset(,0,10)。 memset(,0,20)。 memset(,0,20)。 GetPrivateProfileString(str, 航線起始站 , ,20,./)。 GetPrivateProfileString(str, 起飛時(shí)間 , ,20,./)。 =GetPrivateProfileInt(str, 載客額定,0,./)。 } } void UpdataInfo() { char str[10]={0}。 char flightBuff[10]={0}。 FlightInfo flight。 printf(請(qǐng)輸入要修改航班的 ID:)。 total=GetPrivateProfileInt( 航班數(shù)量 , 總數(shù),0,./)。itotal。 memset(flightBuff,0,10)。 GetPrivateProfileString(buff, 航班號(hào) , ,flightBuff,10,./)。 printf(航班號(hào): )。 scanf(%s,)。 memset(,0,20)。 printf(航線終點(diǎn)站: )。 scanf(%s,)。 memset(,0,20)。 printf(到達(dá)時(shí)間: )。 scanf(%s,)。 scanf(%d,amp。 WritePrivateProfileString(buff, 航班號(hào),./)。 WritePrivateProfileString(buff, 航 線 終 點(diǎn) 站,./)。 WritePrivateProfileString(buff, 到達(dá)時(shí)間,./)。 itoa(,str,10)。 printf(更新成功 !\n)。 } } system(pause)。 char conditionBuff[20]={0}。 char str[10]={0}。 int testVal=0。 break。 break。 break。 break。 break。 printf( 航班號(hào) 航線起始站 航線終點(diǎn)站 起飛時(shí) 間 到達(dá)時(shí)間 載客額定 \n)。itotal。 memset(infoBuff,0,20)。 if (tag==1||tag==2||tag==3||tag==4) { if (memcmp(infoBuff,pValue,strlen(pValue))!=0) { continue。 } } testVal=1。 memset(,0,20)。 memset(,0,20)。 GetPrivateProfileString(str, 航班號(hào) , ,10,./)。 GetPrivateProfileString(str, 航線終點(diǎn)站 , ,20,./)。 GetPrivateProfileString(str, 到達(dá)時(shí)間 , ,20,./)。 printf( %10s%15s%17s%13s%14s%d\n,fli,)。 } system(pause)。 char buff[10]={0}。 char str[10]。 char *returnVal。 returnVal=(char*)malloc(10)。 scanf(%s,flifhtID)。 for (i=0。i++) { memset(str,0,10)。 sprintf(str,航班信息 %d,i+1)。 if (memcmp(buff,flifhtID,strlen(flifhtID))==0) { printf(請(qǐng)輸入要訂票的日期 (例如 2021/09/01):)。 loadlimit=GetPrivateProfileInt(str, 載 客 額 定,0,./)。 memset(returnVal,0,10)。 if (num0 amp。 numloadlimit) { printf(請(qǐng)輸入你的名字 :)。 scanf(%s,buff)。 num++。 WritePrivateProfileString(returnVal,已訂票人數(shù),str,./)。 sprintf(str,乘客 %d,num)。 printf(\n\n\t\t\t\t訂票成功 !\n)。 free(returnVal)。 }else if (num==0) { printf(請(qǐng)輸入你的名字 :)。 scanf(%s,buff)。 infoTotal++。 memset(head,0,10)。 WritePrivateProfileString( 訂 票信息 , 總數(shù),str,./)。 WritePrivateProfileString(head, 日期,flightDate,./)。 num++。 WritePrivateProfileString(head, 已 訂 票 人 數(shù),str,./)。 sprintf(str,乘客 %d,num)。 printf(\n\n\t\t\t\t訂票成功 !\n)。 free(returnVal)。 } else { printf(\n\n\n\t\t\t%s 的票已售完 !\n\n\n,flightDate)。 return 0。 return 0。 char dateBuff[20]={0}。 char str[10],acFlightID[10]。 return 1。 for (i=0。i++) { memset(str,0,10)。 memset(acFlightID,0,10)。 if (memcmp(acFlightID,flightID,strlen(flightID))==0) { GetPrivateProfileString(str, 日期,\0,dateBuff,20,./)。 memcpy(returnVal,str,strlen(str))。 } } } return 0。 char str[10],flightID[10],dateBuff[20]。 flightNo=GetPrivateProfileInt( 航班數(shù)量 , 總數(shù),0,./)。iflightNo。 count=1。 memset(,0,10)。 memset(,0,20)。 memset(,0,20)。 GetPrivateProfileString(str, 航線起始站 , ,20,./)。 GetPrivateProfileString(str, 起飛時(shí)間 , ,20,./)。 =GetPrivateProfileInt(str, 載客額定,0,./)。 printf(\t日期 已經(jīng)被定的票數(shù) 余票 \n)。 for (l=0。l++) { bookingNO=0。 memset(dateBuff,0,20)。 sprintf(str,訂票信息 %d,l+1)。 GetPrivateProfileString(str, 航班號(hào),\0,flightID,10,./)。 memset(dateBuff,0,20)。 bookingNO=GetPrivateProfileInt(str,已訂票人數(shù) ,0,./)。 } if(count==1) { printf(\t%18s%21d%8d\n,dateBuff,bookingNO,adlimitbookingNO)。 } } printf( 航班從 %s 飛抵 %s, 起飛時(shí)間為 %s, 抵達(dá)時(shí)間為 %s\n,Time,)。 break。 break。 system(pause)。 case 4: FlightQuery()。 case 5: Booking()。 break。 system(pause)。 case 7: return 0。 default: printf(輸入有誤 !\n)。 } } return 1。編程中,有老師和前輩的輔導(dǎo),幫助自己將程序編寫的更加完美,體會(huì)到了實(shí)際操作的困難與解決困難后的愉悅心情 。在編程中,敢于嘗試、 敢于創(chuàng)新,有自己的想法,挑戰(zhàn)自我,才能在求知的路上前進(jìn) 。
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1