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

正文內(nèi)容

學生成績管理系統(tǒng)ttc語言課程設(shè)計報告-全文預(yù)覽

2024-10-11 08:13 上一頁面

下一頁面
  

【正文】 enu1)。 printf(\t\t\ )。 printf(\t\t\ )。 scanf(%c,amp。 printf(%13f,p1mongrade)。 printf(\n%11s,p1lessonnum)。 printf(%9s,學分 )。 while(strcmp(p1lessonnum,lessonno)!=0) { if(p1next==0)break。 goto end。ch7) 。 p1=a[pi]。 p2grade=p2testgrade*+p2mongrade*。p2testgrade)。 scanf(%f,amp。 scanf(%s,p2lessonnum)。 if(ch6==39。ch6)。 printf(\n\t\t\ )。639。 scanf(%c,amp。 scanf(%d,amp。539。 scanf(%c,amp。 printf(\n 輸入新的數(shù)據(jù): )。 case 39。 fflush(stdin)。 printf(姓名: %s,pname)。 } break。 printf(\n 修改成功! \n 按任意鍵退出 )。: { system(cls)。ch8)。 scanf(%s,pnum)。139。 printf(\n\t\t\t 請輸入功能選擇編號( 06): )。 printf(\t\ \n)。 printf(\n\n)。 printf(\n 按任意鍵開始修改 )。 printf(%13f,p1mongrade)。) { printf(\n%11s,p1lessonnum)。 printf(%13s,平時成績 )。 printf(\n%11s,課程編號 )。 printf(%16s,pname) 。 printf(%15s,性別 )。 } else { p1=a[pi]。 if(p==0) { printf(\n 按任意鍵退出 )。 struct stu1 *p1。 char ch7。 char ch2。 ch2=getchar()。 printf(%13f,p1mongrade)。) { printf(\n%11s,p1lessonnum)。 printf(%13s,平時成績 )。 printf(\n%11s,課程編號 )。 printf(%16s,pname) 。 printf(%15s,性別 )。 p1=a[pi]。 struct stu *p。 end: return 0。 fa=fanext。 fa=head。 printf(\n 輸入學生學號: )。 } /**/ struct stu *findnum(void) { char num[11]。Y39。 /*清空輸入緩沖區(qū) */ ch=getchar()。 else p2next=p1。p1mongrade)。 scanf(%f,amp。 printf(\n 學分 :)。 printf(\n 課程編號 :)。 struct stu1 *head=0。 p2next=0。y39。 printf(\n 是否繼續(xù)輸入另一學生信息 (y/n)\n)。Y39。 /*清空輸入緩沖區(qū) */ ch1=getchar()。 else p2next=p1。 printf(\n 年齡: )。 printf(\n 姓名: )。 printf(\n 學號: )。 do { n=n+1。/*定義一個指針數(shù)組來記住課程鏈表地址 */ /* 數(shù)據(jù)的錄入程序 */ void create(void) /*建立學生基本信息鏈表 */ { n=0。 struct stu1 *next。 float score。 int n=0。 int age。 /*以輸入的順序來確定的學生序號 */ char num[11]。 計算平均成績:本功能的實現(xiàn)需要首先計算各個學生的平均成績,再按照平均成績進行排序。 查詢信息:本功能實現(xiàn)是調(diào)用 struct stu *findnum(void)函數(shù)查找該條信息的地址,然后再采用 for 循環(huán)進行信息的輸出,本功能的實現(xiàn)比較簡單,難點在于對函數(shù)的調(diào)用的靈活運用。 信息的修改:本系統(tǒng)采用的是按學號查找信息,系 統(tǒng)采用一個由判斷語句和循環(huán)語句構(gòu)成的查詢函數(shù) struct stu *findnum(void)來提供信息存儲地址;再按照地址來進行修改,其中采用 switch語句和循環(huán)語句來控制使系統(tǒng)能夠提供選擇修改的功能。 return(head)。||ch==39。 fflush(stdin)。 if(m==1)head=p1。 scanf(%f,amp。 printf(\n考試成績 :)。 scanf(%s,p1lessonname)。 p1=(struct stu1 *)malloc(LEM)。 char ch。)。 }while(ch==39。 system(cls)。||ch1==39。 fflush(stdin)。 if(n==1)head=p1。 scanf(%s,p1sex)。 scanf(%s,p1classnum)。 p1=(struct stu *)malloc(LEN)。 struct stu1 *create1(void)。 struct stu1 *a[max_num] 。 float grade。 char lessonname[256]。 }。 char sex[32]。 鏈表 struct stu /*定義學生基本信息結(jié)構(gòu)體 */ { int i。《 學生成績管理系統(tǒng) 》 課程設(shè)計報告 專 業(yè): 信息科學與工程學院 班 級: 電氣信息類 0916 班 姓 名: 曹坤 指導(dǎo)教師: 湯哲 學 號: 0909091612 課程設(shè)計報告 一、 課程設(shè)計題目 學生成績 管理系統(tǒng) 需要處理的基礎(chǔ)數(shù)據(jù) ? 學生基本信息: 如 班級、 學號、姓名、性別、年齡等。 ? 考慮用文件把數(shù)據(jù)保存起來(可選)。 char name[128]。 struct stu *next。 struct stu1 /*定義學生選修課信息結(jié)構(gòu)體 */ { char lessonnum[11]。 float mongrade。 int m。 char ch,ch1。 system(cls)。 printf(\n班級: )。 printf(\n性別 :)。p1age)。 printf(\n是否輸入選修課信息( y/n) \n)。y39。 /*根據(jù)序號來記憶課程鏈表地址 */ p1i=n。 /*清空輸入緩沖區(qū) */ ch=getchar()。Y39。 struct stu1 *p1,*p2。 system(cls)。 printf(\n課程名稱 :)。p1score)。 printf(\n平時成績 :)。 printf(\n綜合成績 :%,p1grade)。 printf(\n是否繼續(xù)輸入另一課程信息 (y/n)\n)。y39。 p2next=0。 作者感到本功能設(shè)計中的難點在于將兩個鏈表聯(lián)系起來,解決方案是采用一個指針數(shù)組來將第二個鏈表中每個節(jié)點地址存儲起來,進而將兩個鏈表聯(lián)系起來。 在這一功能的設(shè)計中作者感到插入的具體算法是個難點,本系統(tǒng)采用的教材書本上的方法。在此功能的設(shè)計中,本作者感到難點不在于算法而在于思維設(shè)計的是否縝密。 三、 系統(tǒng)流程 主函數(shù)界面 輸入學生信息 修改學生信息 查詢學生信息 刪除學生信息 插入學生信息 計算平均分 列出不及格學生清單 保存到文件 四、 程序代碼 include include include define LEN sizeof(struct stu) define LEM sizeof(struct stu1) define max_num 256 struct stu /*定義學生基本信息結(jié)構(gòu)體 */ { int i。 char sex[32]。 }。 char lessonname[256]。 float grade。 struct stu1 *a[max_num] 。 struct stu1 *create1(void)。 p
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1