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

正文內(nèi)容

學生借閱系統(tǒng)課程設(shè)計(編輯修改稿)

2025-02-12 15:25 本頁面
 

【文章內(nèi)容簡介】 { q=pnextnext。 tail=pnext。 tailnext=NULL。 pnext=q。 p1next=tail。 tailnext=p。 p=p1。 } } save(head)。 //保存文件} /*插入*/void InsertDoc(struct books_list *head){ /*定義結(jié)構(gòu)體指針變量 s指向開辟的新結(jié)點首地址 p為中間變量*/ struct books_list *s, *p。 char flag=39。Y39。 /*定義flag,方便用戶選擇重復輸入*/ p=head。 /*遍歷到尾結(jié)點,p指向尾結(jié)點*/ while(pnext!= NULL) { p=pnext。 } /*開辟新空間,存入數(shù)據(jù),添加進鏈表*/ while(flag==39。Y39。||flag==39。y39。) { system(cls)。 pborrowed=0。 s=(struct books_list *)malloc(sizeof(struct books_list))。 printf(\n 請輸入學生學號:)。 fflush(stdin)。 scanf(%s,sISBN)。 printf(\n 請輸入學生姓名:)。 fflush(stdin)。 scanf(%s,stitle)。 printf(\n 請輸入學生學院名:)。 fflush(stdin)。 scanf(%s,swriter)。 printf(\n 請輸入借閱圖書名:)。 fflush(stdin)。 scanf(%s,spublishinghouse)。 printf(\n 請輸入借閱圖書編號:)。 fflush(stdin)。 scanf(%d,amp。sprice)。 printf(\n)。 pnext=s。 /*將新增加的節(jié)點添加進鏈表*/ p=s。 /*p指向尾節(jié)點,向后移*/ snext=NULL。 printf( ━━━━ 添加成功!━━━━)。 printf(\n 繼續(xù)添加?(Y/N):)。 fflush(stdin)。 scanf(%c,amp。flag)。 printf(\n)。 if(flag==39。N39。||flag==39。n39。) {break。} else if(flag==39。Y39。||flag==39。y39。) {continue。} } save(head)。 /*保存數(shù)據(jù)至文件*/ system(cls)。 return。}/*查詢操作*/void search_book(struct books_list *head){ struct books_list * p。 char temp[20]。 p=head。 if(head==NULL || headnext==NULL) /*判斷數(shù)據(jù)庫是否為空*/ { printf( ━━━━ 學生庫為空!━━━━\n)。 } else { printf(請輸入您要查找的書名: )。 fflush(stdin)。 scanf(%s,temp)。 /*指針從頭節(jié)點開始移動,遍歷至尾結(jié)點,查找學生借閱信息*/ while(pnext!= NULL) { p=pnext。 if(strcmp(ptitle,temp)==0) { printf(\n學生信息已找到!\n)。 printf(\n)。 printf(學號: %s\t\n,pISBN)。 printf(姓名: %s\t\n,pwriter)。 printf(學院名: %s\t\n,pwriter)。 printf(圖書名: %s\t\n,ppublishinghouse)。 printf(圖書編號: %.2d\t\n,pprice)。 } i
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1