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

正文內容

c語言程序設計(醫(yī)院信息管理系統(tǒng))附源代碼(編輯修改稿)

2024-09-03 04:17 本頁面
 

【文章內容簡介】 } if(tempcost[2]){ printf(病毒唑 %d個\n,tempcost[2])。 } if(temptransfusion){ printf(輸液費 %d\n,temptransfusion)。 } if(tempsurgery){ printf(手術費 %d\n,tempsurgery)。 } sum=tempcost[0]*5+tempcost[1]*9+tempcost[2]*16+temptransfusion+tempsurgery。 //計算sum的值 printf(總費用 %d元,sum)。 } else{ printf(無該病人的信息!\n)。 }}void listall(struct patient *temp){ //定義listall函數,列出所有病人的信息 printf(id 姓名\n)。 while(temp){ printf(%s %s\n,tempid,tempname)。 temp=tempnext。 }}/**/include struct patient *insert(struct patient *head,struct patient *rear){ /*!!!!!!可以出現重復id*/ struct patient *temp。 if(head){ temp=head。 while(tempnext){ temp=tempnext。 } tempnext=rear。 rearnext=0。 } else{ head=rear。 rearnext=0。 } return head。}void modify(struct patient *temp){ //修改病人病歷 char t[10],d[200]。 //定義字符組 char a[4],b[2],c[2]。 //定義字符組 printf(請輸入病人的id\n)。 gets(t)。 //輸入病人的id while(tempamp。amp。strcmp(tempid,t)){ //自動查找病人的id temp=tempnext。 } if(temp){ printf(原有病歷: %s\n,tempcasehist)。 printf(輸入當前日期 年份)。 gets(a)。 //輸入年份 printf(輸入當前月份)。 gets(b)。 //輸入月份 printf(輸入當前日子)。 gets(c)。 //輸入日期 strcat(tempcasehist,a)。 //把字符串a接到tempcasehist后面 strcat(tempcasehist,/)。 //把字符“/”接到tempcasehist后面 strcat(tempcasehist,b)。 //把字符串b接到tempcasehist后面 strcat(tempcasehist,/)。 //把字符“/”接到tempcasehist后面 strcat(tempcasehist,c)。 //把字符串c接到tempcasehist后面 strcat(tempcasehist,:)。 //把字符“:”接到tempcasehist后面 printf(請輸入新病歷的內容\n)。 gets(d)。 //輸入新病歷內容 strcat(tempcasehist,d)。 //把字符串d接到tempcasehist后面 strcat(tempcasehist,\n)。 //把字符\n接到tempcasehist后面 } else{ printf(無此病人信息!\n)。 }}void buy(struct patient *temp,struct storage *s){ //病人消費處理 char t[10]。 int a,b,c,d,e。 int flag1。 printf(請輸入病人的id\n)。 gets(t)。 //輸入病人的id while(tempamp。amp。strcmp(tempid,t)){ //自動查找病人的id temp=tempnext。 } if(temp){ flag1=0。 do{ printf(請輸入買入巴米爾的個數:\n)。 scanf(%d,amp。a)。 flag1=0。 if(asamount[0]){ //若輸入的值大于庫存的值,則提示庫存不足 printf(庫存不足!\n)。 flag1=1。 } }while(flag1)。 //flag1=1時,執(zhí)行循環(huán)體 flag1=0。 do{ printf(請輸入買入感冒靈的個數:\n)。 scanf(%d,amp。b)。 flag1=0。 if(bsamount[1]){ //若輸入的值大于庫存的值,則提示庫存不足 printf(庫存不足!\n)。 flag1=1。 } }while(flag1)。 //flag1=1時,執(zhí)行循環(huán)體 flag1=0。 do{ printf(請輸入買入病毒唑的個數:\n)。 scanf(%d,amp。c)。 flag1=0。 if(csamount[2]){ //若輸入的值大于庫存的值,則提示庫存不足 printf(庫存不足!\n)。 flag1=1。 } }while(flag1)。 //fl
點擊復制文檔內容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1