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

正文內(nèi)容

c語言課程設(shè)計(jì)報(bào)告飯卡管理程序-預(yù)覽頁

2025-02-22 03:51 上一頁面

下一頁面
 

【正文】 當(dāng)系統(tǒng)詢問否是,選擇 Y,鍵入回車即為是,選擇 N 鍵入回車即為否。 2) 注冊(cè)信息模塊 函數(shù)原型: void registing(tea T[],stu S[]);函數(shù)功能:輸入持卡人基本信息;無返回值。 4) 密碼操作模塊 函數(shù)原型: void editpassword(tea T[],stu S[]);函數(shù)功能: 查詢或修改密碼;無返回值。 6) 余額操作模塊 函數(shù)原型: void editmoney(tea T[],stu S[]);函數(shù)功能:飯卡加錢或查詢余額;無返回值。 8) 掛失模塊 函數(shù)原型: void reportloss(tea T[],stu S[]);函數(shù)功能:賬戶掛失注冊(cè);無返回值。 10) 統(tǒng)計(jì)模塊 函數(shù)原型: void countotherinfo(tea T[],stu S[]);函數(shù)功能:統(tǒng)計(jì)持卡人數(shù)、統(tǒng)計(jì)掛失卡信息、統(tǒng)計(jì)余額不足卡信息;無返回值。 ? 程序源代碼清單 include /*I/O 函數(shù) */ include /*字符串函數(shù) */ include /*其它說明 */ include /*屏幕操作函數(shù) */ int sn=0。 /*學(xué)生卡號(hào) */ char sname[20]。 /*學(xué)生卡密碼 */ int sloss。 /*教師卡號(hào) */ char tname[20]。 /*教師卡密碼 */ int tloss。 /*注冊(cè)函數(shù) */ void searchInfo(tea T[],stu S[])。 /*加錢或查詢余額函數(shù) */ void editmealinfo(tea T[],stu S[])。 /*統(tǒng)計(jì)函數(shù) */ /******主函數(shù) ******/ main() { stu S[100]。 randomize()。 /*輸入函數(shù)選擇 */ while(choice!=0){ switch(choice){ case 1: { do{ registing(T,S)。x)。n39。 /*信息查找 */ printf(Do you want to return to the menu?(Y or N):)。 }while(x==39。)。 getchar()。N39。 break。 scanf(%c,amp。||x==39。 } case 5: { do{ editmoney(T,S)。x)。n39。 /*處理就餐信息 */ printf(Do you want to return to the menu?(Y or N):)。 }while(x==39。)。 getchar()。N39。 break。 scanf(%c,amp。||x==39。 } case 9: { do{ countotherinfo(T,S)。x)。n39。 /*提示錯(cuò)誤信息 */ break。choice)。 /*輸入個(gè)人信息 */ printf(The basic information of the card.........2\n)。 /*查詢余額或加錢 */ printf(Manage the dining information.............6\n)。 /*統(tǒng)計(jì)其他信息 */ printf(Exit......................................0\n)。 /*身份變量 */ char x。 printf(1teacher\n)。i)。 /*輸入教師號(hào) */ printf(Please input name(less than 20 letters):(Wang Ming))。 printf(Please input college information(less than 50 integers):(mechanic electricity)\n)。T[tn].tmoney)。 /*隨機(jī)分配密碼 */ printf(The password is:%d\n,T[tn].tpassword)。 scanf(%d,amp。x)。 /*輸入院系 */ printf(Please input the money(~):)。 /*隨機(jī)分配卡號(hào) */ printf(The card number is:%d\n,S[sn].sumber)。 /*初始化掛失變量 */ sn++。 /*清屏 */ printf(========system of inquiring personal information========\n)。 /*輸入卡號(hào) */ for(i=0。 /*提示掛失信息 */ } else{ printf(========information========\n)。 printf(College: %s\n,T[i].tcollege)。 } } } if(flag==0){ for(j=0。 /*提示掛失信息 */ } else{ printf(========information========\n)。 printf(College: %s\n,S[j].scollege)。 } } } } if(flag==0){ /*若未找到該卡號(hào) */ printf(========warning========\n)。 /*i 為控制教師的循環(huán)變量、 j 為控制學(xué)生的循環(huán)變量、 c 為命令選擇變量 */ clrscr()。number)。 scanf(%d,amp。i++){ if(number==T[i].tumber){ /*若為教師卡號(hào) */ if(T[i].tloss==1){ /*若該卡已掛失 */ printf(This card is registed loss!\nYou must go to the office to restart it.\n)。T[i].tpassword)。 } } } if(flag==0){ for(j=0。 /*提示掛失信息 */ } else{ /*若未掛失 */ printf(Please enter your new password:(0000~9999))。 /*提示密碼修改成功信息 */ flag=1。i++){ if(number==T[i].tumber){ /*若為教師卡號(hào) */ if(T[i].tloss==1){ /*若該卡已掛失 */ printf(This card is registed loss!\nYou must go to the office to restart it.\n)。 /*輸出密碼 */ flag=1。j++){ if(number==S[j].sumber){ /*若為學(xué)生卡號(hào) */ if(S[j].sloss==1){ /*若該卡已掛失 */ printf(This card is registed loss!\nYou must go to the office to restart it.\n)。 printf(password:%d\n,S[j].spassword)。 printf(It is a wrong number.\n)。 /*decide 記錄是否更改 */ clrscr()。number)。i++){ if(number==T[i].tumber){ /*若為教師卡號(hào) */ if(T[i].tloss==1){ /*若該卡已掛失 */ printf(This card is registed loss!\nYou must go to the office to restart it.\n)。 printf(School number: %d\n,T[i].tnumber)。decide)。||decide==39。 /*輸入新姓名 */ } printf(Do you want to change your college?(Y or N):)。 if(decide==39。){ printf(Please enter your new college:(less than 50 integers))。decide)。||decide==39。T[i].tnumber)。 } } } if(flag==0){ for(j=0。 /*提示掛失信息 */ } else{ /*若未掛失 */ printf(========personal information========\n)。 printf(Do you want to change your name?(Y or N):)。 if(decide==39。){ printf(Please enter your new name(less than 20 integers):(Wang Hong))。decide)。||decide==39。 /*輸入新院系 */ } printf(Do you want to change your school number?(Y or N):)。 if(decide==39。){ printf(Please enter your new school number:(0~9999))。 } flag=1。 /*提示卡號(hào)錯(cuò)誤 */ } } void editmoney(tea T[],stu S[]){ int i,j,c。 /*清屏 */ printf(========system of adding/inquiring money========\n)。 /*輸入卡號(hào) */ printf(1Add money\n)。c)。 flag=1。 /*輸入需要加入的金額 */ T[i].tmoney+=money。 /*輸出現(xiàn)有余額 */ flag=1。j++){ if(number==S[j].sumber){ /*若為學(xué)生卡 號(hào) */ if(S[j].sloss==1){ /*若該卡已掛失 */ printf(This card is registed loss!\nYou must go to the office to restart it.\n)。money)。 /*提示加錢成功 */ printf(The money in the card now:%\n,S[j].smoney)。itn。 printf(money:%\n,T[i].tmo
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1