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

正文內容

c語言課程設計報告(軍訓管理系統(tǒng))(編輯修改稿)

2025-06-25 22:00 本頁面
 

【文章內容簡介】 printf( \n)。 printf( \n)。 printf( \n)。 printf( \n\n)。 printf(請選擇...\n)。 scanf(%d,amp。choice)。 switch(choice) { case 1: input()。 break。 case 2: scan()。 break。 case 3: find()。 break。 case 4: change()。break。 case 5: del()。break。 case 6: add()。break。 case 0: exit(0)。 } if(choice5) printf(沒有此項選項!\n)。 }while(1)。 exit(0)。 } else printf(\n密碼錯誤!\n請重新輸入密碼!\n)。 } } }void input() /*錄入信息模塊*/{ char a。 struct st_type *head,*p1,*p2。 system(cls)。 head=p2=(struct st_type *)malloc(N)。 p1=(struct st_type *)malloc(N)。 printf(請輸入學生學號:\n)。 scanf(%d,amp。p1)。 printf(請輸入學生姓名:\n)。 scanf(%s,p1)。 printf(請輸入學生專業(yè):\n)。 scanf(%s,p1)。 printf(請輸入學生班級:\n)。 scanf(%d,amp。p1)。 printf(請輸入學生所分入營號:\n)。 scanf(%d,amp。p1)。 printf(請輸入學生所分入連號:\n)。 scanf(%d,amp。p1)。 while(p1!=0) { p2next=p1。 p2=p1。 p1=(struct st_type *)malloc(N)。 printf(\n是否繼續(xù)輸入?(是選y,否選n)\n)。 fflush(stdin)。 scanf(%c,amp。a)。 if(a==39。n39。) break。 system(cls)。 printf(請輸入學生學號:\n)。 scanf(%d,amp。p1)。 printf(請輸入學生姓名:\n)。 scanf(%s,p1)。 printf(請輸入學生專業(yè):\n)。 scanf(%s,p1)。 printf(請輸入學生班級:\n)。 scanf(%d,amp。p1)。 printf(請輸入學生所分入營號:\n)。 scanf(%d,amp。p1)。 printf(請輸入學生所分入連號:\n)。 scanf(%d,amp。p1)。 } p2next=NULL。 free(p1)。 save(head)。}void save(struct st_type *head) /*保存信息*/{ struct st_type *p。 FILE *fp。 fp=fopen(,wt)。 if(fp==NULL) { printf(不能打開文件,存儲失?。n)。 printf(輸入任意鍵返回主界面。\n)。 getch()。 } p=headnext。 while(p!=NULL) { fwrite(p,sizeof(struct student_type),1,fp)。 p=pnext。 } fclose(fp)。 printf(已成功保存!\n\n)。 printf(輸入任意鍵返回主界面。\n)。 getch()。}struct st_type *openf() /*打開文件*/{ FILE *fp。 struct st_type *p,*p1,*head。 head=p1=(struct st_type *)malloc(N)。 p=(struct st_type *)malloc(N)。 fp=fopen(,rt)。 while((fread(p,sizeof(struct student_type),1,fp))) { p1next=p。 p1=p。 p=(struct st_type *)malloc(N)。 } p1next=NULL。 free(p)。 fclose(fp)。 return head。}void scan() /*瀏覽信息模塊*/{ int choice。 struct st_type *p, *q, t, *r,*head。 system(cls)。 head=openf()。 p=headnext。 printf( 學生學號 姓名 專業(yè) 班級 分入營號 連號\n\n)。 while(p!=NULL) { printf( %d %s %s %d %d %d\n,p,p,p,p,p,p)。 p=pnext。 } printf(以上排序由錄入數據的先后決定。\n也可以選擇以下為關鍵詞升序查看:\n)。 printf( \n)。 printf( \n)。 printf( \n)。 printf( \n\n)。 printf(請選擇...\n)。 scanf(%d,amp。choice)。 if(choice3) { printf(沒有此項選項!\n)。 printf(請重新選擇...\n)。 scanf(%d,amp。choice)。 } if(choice==0) return。 switch(choice) { case 1: for(p = headnext。 p。 p = pnext) for(q = pnext。 q。 q = qnext) if(p q) { t = *p。 *p = *q。 *q = t。 r = pnext。 pnext = qnext。 qnext = r。 } p = headnext。 break。 case 2: for(p = headnext。 p。 p = pnext) for(q = pnext。 q。 q
點擊復制文檔內容
化學相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1