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

正文內(nèi)容

在線考試系統(tǒng)-c語言課程設(shè)計報告-在線瀏覽

2024-10-31 20:21本頁面
  

【正文】 \n\n)。 getchar()。 j = 0。 head = (stu *)malloc(sizeof(stu))。 my_read()。 return 0。 system(cls)。 n = my_natural()。 l = n。 printf (請輸入題干 :%d., i)。 printf (請輸入 A:)。 printf (請輸入 B:)。 printf (請輸入 C:)。 printf (請輸入 D:)。 printf (請輸入答案( a、 b、 c、 d) :)。 printf (請輸入章節(jié)(數(shù)字) :)。 printf (請輸入難度( *號表示): )。 } save_tests()。 getchar()。 } 修改試題 include void to_tests() //修改試題 { static int n。 printf (請輸入題號: )。 if (n == 0 || n i) { printf (\n 無此題! \n 回車鍵返回…… )。 return 。 gets(tests[n].maintest)。 gets(tests[n].a)。 gets(tests[n].b)。 gets(tests[n].c)。 gets(tests[n].d)。 gets(tests[n].ans)。 tests[n].zhangjie = my_natural()。 gets(tests[n].nandu)。 7 printf (\n 修改成功! \n)。 getchar()。 } 刪除學生信息 include void del_stu() //刪除學生 { static stu *p, *q。 system(cls)。 gets(num)。 while (pnext != NULL) //查找對應(yīng)節(jié)點 { if (strcmp(pnextnum, num) == 0) break。 } if (pnext != NULL) //找到則刪除 { q = pnext。 free(q)。 //保存刪除后的到文件 printf(\n 刪除成功。 getchar()。 } else //沒找到則返回信息 { printf(\n 你所要刪除的的賬號不存在! \n 回車鍵返回…… )。 return 。 system(cls)。 n = my_natural()。 getchar()。 } else { for (。 n++) { tests[n] = tests[n + 1]。 save_tests()。 printf (回車鍵返回…… )。 return 。 p = headnext。 if (p == NULL) //判斷是否為空 { printf (數(shù)據(jù)空! \n 回車鍵返回…… )。 return。 while (p != NULL) // 不空則輸出 { printf (%17s%10s%17s%d\n, pnum, pname, ppass, pscore)。 } printf (\n 顯示完畢! \n)。 10 getchar()。 } 顯示主菜單 void my_menu() //顯示主菜單 { static int n。 printf (請選擇您的身份: 【 1】學生 \n)。 printf ( 【 0】退出 \n)。 n = my_natural()。break。break。 default:system(cls)。printf (回車鍵返回 … )。break。 static stu *p。 if((fp = fopen(,rb+)) == NULL) //讀取管理員密碼 { Admin = (struct teacher *)malloc(sizeof(struct teacher))。 strcpy(Adminpassword, admin)。 if (fwrite(Admin, sizeof(stu), 1, fp) != 1) printf (file write error\n)。 } else { // printf (數(shù)據(jù)加載成功 .1....\n)。 fread(Admin,sizeof(struct teacher),1,fp)。 } if((fp = fopen(,rb)) == NULL) //讀取學生信息 { // printf (can not open.\n)。 fclose(fp)。 s = (stu *)malloc(sizeof(stu))。 while (fread(s,sizeof(stu),1,fp) != 0) { if (headnext == NULL) { headnext = s。 } else { tailnext = s。 }
點擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1