c语言成绩管理系统完整vc6,学生成绩管理系统源代码
《學生成績管理系統源代碼》由會員分享,可在線閱讀,更多相關《學生成績管理系統源代碼(25頁珍藏版)》請在人人文庫網上搜索。
1、一、課程設計(論文)題目學生成績管理系統二、本次課程設計(論文)應達到的目的通過數據庫大作業(yè)課程設計的操作與實踐,使學生了解關系數據庫的相關理論知識和有關工具軟件的使用技巧,在一定程度上提高應用程序的綜合開發(fā)能力和創(chuàng)新意識、創(chuàng)新能力。 三、本次課程設計(論文)任務的主要內容和要求(包括原始數據、技術參數、設計要求等) 系統功能基本要求 :1學生信息維護;2教師信息維護;3. 課程信息維護;4學生選課信息;5. 任課教師操作課程成績;6. 學生查詢課程成績。四、應收集的資料及主要參考文獻: 1. 數據庫:原理編程與性能(影印版)(第2版),高等教育出版社, Parick ONeil,Elizab。
2、eth ONeil編著,2005.7;2. 數據庫系統概論(第4版),高等教育出版社,王珊,薩師煊編著,2006.05; 五、審核批準意見教研室主任(簽字) 這次課設我做的是學生成績管理系統,本系統依據開發(fā)要求主要針對于教育系統,完成對日常的教育工作對學生成績檔案及其他信息的數字化管理。開發(fā)本系統可使學院教職員工減輕工作壓力,比較系統地對教務、教學上的各項服務和信息進行管理,同時,可以減少勞動力的使用,加快查詢速度、加強管理,使各項管理更加規(guī)范化。現在在各大中小學校,用計算機管理學校的信息已經越來越普遍了。用計算機不但可以提高工作效率,而且還節(jié)省了許多人力物力,增強了學校資料的安全性。提高了學。
3、校的管理能力,為此,用計算機來管理學校的信息,是非常必要的。目前,學校工作繁雜、資料重多,目前還沒有一套完整的、統一的系統。因此,開發(fā)一套適和大眾的、兼容性好的系統是很有必要的,但由于知識積累及時間關系,這次課設我所設計的系統不是很完善,有些地方沒有考慮到,所以實用性大打折扣,后面有時間將會將系統設計的全面些,更具有實用性。 在這次課設的開發(fā)過程中,我注意使其符合軟件工程的設計的要求,在之前準備了許多時間來設計表結構,并將各個模塊的流程畫出來,使系統的各個模塊功能完善,并力求系統應具有實用性、可靠性和適用性方便用戶的操作,盡量減少用戶的操作,并且能夠對查詢結果進行分類匯總,該系統還有許多不盡如。
4、人意的地方,比如用戶界面不夠美觀,對于出錯處理不夠等多方面問題,這些都有待進一步改善。 目錄設計目的 1需求分析6概要設計7配置數據源11詳細設計13設計總結22參考文獻23C語言程序課程設計學生成績管理系統一設計目的通過數據庫大作業(yè)課程設計的操作與實踐,使學生了解關系數據庫的相關理論知識和有關工具軟件的使用技巧,在一定程度上提高應用程序的綜合開發(fā)能力和創(chuàng)新意識、創(chuàng)新能力。二問題描述系統功能基本要求 :1學生信息維護;2教師信息維護;3. 課程信息維護;4學生選課信息;5. 任課教師操作課程成績;6. 學生查詢課程成績。三. 需求分析“學生成績管理信息系統”包括四個模塊:成績錄入、班級統計、年。
5、級統計、系統功能。這四個模塊既相互聯系又相互獨立,班級統計、年級統計模塊必須以成績錄入為基礎。(1)成績錄入模塊:主要功能用來對學生的成績進行收集和修改。具體包括學生成績錄入、修改、增加、刪除、查詢等功能,成績錄入需要分班級、分年級以及某個時間考試的各門功課的成績。修改要與成績錄入相對應。增加、刪除是對基本表的操作。查詢條件設置應該齊全,可以班級查詢,年級查詢,也可以姓名查詢,學號查詢等等。(2)班級統計模塊:主要功能用來對學生的成績以班級為單位進行處理。具體包括各班學生總成績、平均成績、班級排名及統計班級某分數段內的學生人數;各個學生該科成績、班級排名及統計班級某分數段內的學生人數。各項統計。
6、僅對于某學期某次考試而言。(3)年級統計模塊:主要功能用來對學生的成績以年級為單位進行處理。具體包括各年級學生總成績、年級排名統計年級某分數段內的學生人數;各個學生該科成績、年級排名及統計、年級某分數段內的學生人數。各項統計僅對于某學期某次考試而言,在統計時,還應注意各年級考試科目不同。(4)系統功能模塊:關于系統及退出系統。四概要設計在概要設計里,根據系統需求設計系統EI圖,程序流圖,系統功能模塊圖等信息,并配置了數據源。課程號成績編號學生學號學號班號科目圖1系統EI圖圖2學生信息圖3功能模塊圖:查詢條件滿足條件數據庫顯示結果退出不符合條件圖4查詢模塊流程圖學生成績學號姓名考試日期操作系統數。
7、據庫組成原理計算機網絡數據結構班級班級號年級號班級人數總人數圖5班級與學生成績流圖(一)、系統的功能分析該學生成績管理系統是基于網絡在線的學生成績管理系統,在系統中分為大的兩個方面:一是教師登錄頁面、二是學生登錄頁面。(1)教師進入學生成績管理系統的主要功能是:實現添加用戶、添加成績、學籍信息修改、修改密碼、查詢課程、選課、查詢成績、學籍信息查詢、打印等基本功能。(2)學生進行學生成績管量系統的主要功能是:實現修改密碼、查詢課程、選課、查詢成績、學籍信息查詢、打印等基本功能。(二)、 系統功能模塊圖登錄添加用戶添加成績信息修改修改密碼查詢課程查詢成績信息查詢退出系統系統首頁教師功能界面圖6教師。
8、功能模塊圖教師在學生成績管理系統中能夠對所有學生的成績查看,對學生按學號進行精確查詢、按學生姓名進行模糊查詢,可以修改自己的登錄密碼,添加用戶,添加學生的成績,打印學生的學籍信息。 退出系統信息查詢修改密碼選課課程查詢成績查詢登錄系統首頁學生功能界面圖7學生功能模塊學生在系統中的基本功能是對自己所有成績的查詢,課程的查詢,個人登錄密碼的修改,基本信息的查看,選課,打印自己的學籍信息。七代碼#include #include #include #include struct student /結構體定義int num;char name10;char birthday10;int Cyuyan;。
9、int shujujiegou;struct student *next;struct student *creat_by_input();struct student *get_last_student(struct student *head);struct student *Print_menu_main() /主菜單printf( *n);printf( | 1.輸入學生信息 | n);printf( | 2.輸出學生信息 | n);printf( | 3.查找學生信息 | n);printf( | 4.修改學生信息 | n);printf( | 5.插入學生信息 | n);print。
10、f( | 6.刪除學生信息 | n);printf( | 7.排序學生信息 | n);printf( | 0.退出系統 | n);printf( |_ _ _ _ _ _ _ _ _ _ _ _ _ | n);struct student *print_table_head() printf(+-+-+-+-+-+n);printf(| 學號 | 姓名 | 出生日期 | c成績 |數據結構成績 |n);printf(+-+-+-+-+-+n);struct student *print_table_row(struct student *p)printf(|%10d|%10s|%10s|%10。
11、d|%10d|n,p-num,p-name,p-birthday,p-Cyuyan,p-shujujiegou);void print_table_bottom()printf(+-+-+-+-+-+n);struct student * Creat_stu_record() /建立鏈表struct student *plaststu=NULL,*pnewstu;char continue_input=N;struct student *head=NULL;while(1)if(head=NULL)head=creat_by_input();print_table_head();print_t。
12、able_row(head);print_table_bottom();else pnewstu=creat_by_input();print_table_head();print_table_row(pnewstu);print_table_bottom();plaststu=get_last_student(head);plaststu-next=pnewstu;printf(是否繼續(xù)輸入學生信息?(Y 繼續(xù),N 返回菜單)n);getchar();continue_input=getchar();if(continue_input=n|continue_input=N) system(c。
13、ls);Print_menu_main();break;return head;struct student *creat_by_input() struct student *pnewstu=(struct student *)malloc(sizeof(struct student);printf(請輸入學生信息n);printf(學號:);scanf(%d,&pnewstu-num);printf(姓名:);scanf(%s,pnewstu-name);printf(出生年月:);scanf(%s,pnewstu-birthday);printf(請輸入學生成績n);printf(C語言。
14、:);scanf(%d,&(pnewstu-Cyuyan);printf(數據結構:);scanf(%d,&(pnewstu-shujujiegou);pnewstu-next=NULL;return pnewstu;struct student *get_last_student(struct student *p ) if(p-next=NULL)return p;else return get_last_student(p-next);void Print_Stu_Doc(struct student *head)struct student *p;char r;print_table_。
15、head();if(head=NULL)printf(n No Recordsn);for(p=head;p;p=p-next)printf(|%10d|%10s|%10s|%10d|%10d|n,p-num,p-name,p-birthday,p-Cyuyan,p-shujujiegou);printf(+-+-+-+-+-+n);printf(按Enter鍵返回主菜單)n);getchar();r=getchar();if(r!=1)system(cls);Print_menu_main();elsesystem(cls);Print_menu_main();struct student 。
16、*search_by_name(struct student *head)/按姓名查找char name10;struct student *p=head;char continue_input;/*int isfound=0;*/printf(請輸入要查找的姓名:);scanf(%s,name);printf(查找%sn,name);print_table_head();while(p!=NULL) if(strcmp(p-name,name)=0) print_table_row(p);p=p-next;/*isfound=1; */break;p=p-next;print_table_b。
17、ottom();printf(是否繼續(xù)查找?(Y 繼續(xù);N 返回主菜單)n);getchar();continue_input=getchar();if(continue_input=n|continue_input=N)system(cls);Print_menu_main();else search_by_name(head);struct student * search_by_id(struct student *head)/按學號查找int id;struct student *p=head;char continue_input;/*int isfound=0;*/printf(請。
18、輸入要查找的學號:);scanf(%d,&id);printf(查找%dn,id);print_table_head();while(p!=NULL) if(p-num=id) print_table_row(p);p=p-next;/*isfound=1;*/break;p=p-next;print_table_bottom();printf(是否繼續(xù)查找?(Y 繼續(xù);N 返回主菜單)n);getchar();continue_input=getchar();if(continue_input=n|continue_input=N)system(cls);Print_menu_main();。
19、else search_by_id(head);return head; struct student*modify_record_by_id(struct student*head)/按學號修改struct student *p=head;int id;char continue_input;printf(請輸入要修改的學生的學號:n);scanf(%d,&id);while(p!=NULL)if(p-num=id)break;p=p-next;if(p=NULL) printf(抱歉,沒有學號為%d的學生n,id);else printf(請輸入學生信息:n);printf(學號:);sc。
20、anf(%d,&(p-num);printf(姓名:);scanf(%s,&(p-name);printf(出生年月:);scanf(%s,&(p-birthday);printf(請輸入學生成績:n);printf(C語言:);scanf(%d,&(p-Cyuyan);printf(數據結構:);scanf(%d,&(p-shujujiegou);print_table_head();print_table_row(p);print_table_bottom();printf(繼續(xù)修改學生信息嗎?Y 繼續(xù);N 返回主菜單n);getchar();continue_input=getchar(。
21、);if(continue_input=y|continue_input=Y)creat_by_input();else system(cls);Print_menu_main();return head;struct student*modify_record_by_name(struct student*head)/按姓名修改struct student*p=head;char name10;char continue_input;printf(請輸入要修改的學生的姓名:n);scanf(%s,name);while(p!=NULL)if(strcmp(p-name,name)=0) br。
22、eak;p=p-next;if(p=NULL) printf(抱歉,沒有姓名為%s的學生n,name);else printf(請輸入學生信息:n);printf(學號:);scanf(%d,&(p-num);printf(姓名:);scanf(%s,&(p-name);printf(出生年月:);scanf(%s,&(p-birthday);printf(請輸入學生成績:n);printf(C語言:);scanf(%d,&(p-Cyuyan);printf(數據結構:);scanf(%d,&(p-shujujiegou);print_table_head();print_table_row(。
23、p);print_table_bottom();printf(繼續(xù)修改學生信息嗎?Y 繼續(xù);N 返回主菜單n);getchar();continue_input=getchar();if(continue_input=y|continue_input=Y)creat_by_input();elsesystem(cls);Print_menu_main();return head;struct student *insert_record(struct student *head)/插入struct student *ptr1;struct student *ptr,*stud;struct s。
24、tudent *ptr2=head;char continue_input=N;int id;printf(請輸入一個學號,在此之前插入學生信息:);scanf(%d,&id);stud=creat_by_input();ptr=stud;if(head=NULL)head=ptr;head-next=NULL;else if(head-num=id)ptr-next=head;head=ptr;elsewhile(ptr2!=NULL) ptr1=ptr2;ptr2=ptr1-next;if(ptr2-num=id)ptr1-next=ptr;ptr-next=ptr2;break;prin。
25、t_table_head();print_table_row(ptr);print_table_bottom();printf(是否繼續(xù)插入學生信息?(Y 繼續(xù) N 返回主菜單)n);getchar();continue_input=getchar();if(continue_input=y|continue_input=Y) return insert_record(head);else system(cls);Print_menu_main();return head;struct student *Delete_record_by_id( struct student *head)/按學。
26、號刪除struct student *p=head,*ppre=NULL;int id;char continue_input;printf(請輸入要刪除的學號:);scanf(%d,&id);while(p!=NULL)if(p-num=id) break;p=p-next;if(p=NULL) printf(抱歉,沒有該學號的學生信息!n); else printf(確定要刪除學號為%d的學生的信息嗎?(Y 確定;N 返回主菜單)n,p-num);getchar();continue_input=getchar(); if(continue_input=y|continue_input=Y。
27、) ppre=head;if(ppre=p)head=p-next;printf( n);free(p);elsewhile(ppre!=NULL)if(ppre-next=p)ppre-next=p-next;free(p);break;ppre=ppre-next;printf(刪除成功!); / Print_menu_main();printf(繼續(xù)刪除學生信息嗎?(Y 繼續(xù);N 返回主菜單);getchar();continue_input=getchar();if(continue_input=y|continue_input=Y) Delete_record_by_id(head)。
28、;else system(cls);Print_menu_main();return head;return 0; struct student *Delete_record_by_name( struct student *head)/ 按姓名刪除struct student *p=head,*ppre=NULL;char name10;char continue_input;printf(請輸入要刪除的姓名:);scanf(%s,name);while(p!=NULL)if(strcmp(p-name,name)=0) break;p=p-next;if(p=NULL) printf(抱歉。
29、,沒有該姓名的學生信息!n);goto end;elseprintf(確定要刪除姓名為%s的學生的信息嗎?(Y 確定;N 返回主菜單),p-name);printf(n);getchar();continue_input=getchar();if(continue_input=y|continue_input=Y) ppre=head;if(ppre=p)head=p-next;free(p);else while(ppre!=NULL)if(ppre-next=p)ppre-next=p-next;free(p);break;ppre=ppre-next;printf(刪除成功!);/els。
30、e Print_menu_main();end: printf(繼續(xù)刪除學生信息嗎?(Y 繼續(xù);N 返回主菜單);printf(n);getchar();continue_input=getchar();if(continue_input=Y|continue_input=y)Delete_record_by_name(head); else system(cls);Print_menu_main();return head;return 0; struct student * Sorting_record_by_id(struct student *head)/按學號排序int i=0,j,。
31、k,r;struct student *pt1,*pt2,*pt,m;if(head=NULL)printf(現在無同學記錄n);printf(按Enter鍵返回主菜單)n);getchar();r=getchar();if(r!=1)system(cls);Print_menu_main();elsesystem(cls);Print_menu_main();elsept1=head;pt2=head-next;for(pt=head;pt;pt=pt-next)i+;for(j=1;jnext;for(k=1;knumpt2-num)m=*pt1;*pt1=*pt2;*pt2=m;pt2-。
32、next=pt1-next;pt1-next=pt2;pt1=pt2;pt2=pt1-next;print_table_head();for(pt=head;pt;pt=pt-next)printf(|%10d|%10s|%10s|%10d|%10d|n,pt-num,pt-name,pt-birthday,pt-Cyuyan,pt-shujujiegou);printf(+-+-+-+-+-+n);return head;int main()struct student *head=NULL;struct student *p;int choice;int select;char m;cha。
33、r r;system(color e);printf( n);printf( n);printf( 歡迎使用學生成績管理系統! n);printf( n);printf(n);printf( n);printf(.n);printf(請按照提示信息完成操作n);Print_menu_main();printf( n);printf(:n);printf( n);printf(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *n);while(choice!=0)printf(請選擇所要執(zhí)。
34、行的操作:n);start:if(scanf(%d,&choice)if(choice7|choice0)printf(請輸入0到7的數字,選擇所要執(zhí)行的操作:n);goto start;elsegoto next;if(scanf(%c,&m)printf(請輸入0到7的數字,選擇所要執(zhí)行的操作:n);goto start;next:switch(choice)case 1:system(cls);head=Creat_stu_record();break;case 2:system(cls);Print_Stu_Doc(head);break;case 3:system(cls);prin。
35、tf(請選擇查找方式:1 按姓名查找; 2 按學號查找;3 返回主菜單);printf(n);scanf(%d,&select);switch(select)case 1:search_by_name(head);break;case 2:search_by_id(head);break;case 3:system(cls);Print_menu_main();break;break;case 4:system(cls);printf(請輸入修改方式:1 按學號修改;2 按姓名修改; 3 返回主菜單);printf(n);scanf(%d,&select);switch(select)case。
36、 1:system(cls);modify_record_by_id(head);break;case 2:system(cls);modify_record_by_name(head);break;case 3:system(cls);Print_menu_main();break;break;case 5:system(cls);head=insert_record(head);break;case 6:system(cls);printf(請輸入刪除方式:1 按學號刪除;2 按姓名刪除; 3 返回主菜單n);scanf(%d,&select);switch(select)case 1:h。
37、ead=Delete_record_by_id(head);break;case 2:head=Delete_record_by_name(head);break;case 3:Print_menu_main();break;break;case 7:system(cls);Sorting_record_by_id(head);printf(按Enter鍵返回主菜單)n);getchar();r=getchar();if(r!=1)system(cls);Print_menu_main();elsesystem(cls);Print_menu_main();break;break;case 0。
38、:system(cls);printf( n);printf(-n);printf( - - - - - 謝謝使用 - - - - -!n);printf( n);break;八. 設計總結為期兩個禮拜的數據庫課程設計終于做完了,感覺在這段時間里收獲了很多東西,由于這學期才學習的數據庫原理,閆老師的代課條理清晰,所以做數據庫課程設計感覺是對數據庫的一次很好的復習。剛好課程設計前學習了一段時間MFC,所以在課程設計過程中對VC的使用不是很困難,即使遇到不懂的就在網上查詢資料或咨詢老師和同學都能夠順利的解決遇到的問題。由于我們使用的是ACCESS數據庫,將數據庫表的創(chuàng)建等都直接集成在向導里面,所以。
39、數據庫語句我們基本上就沒用到,加上時間太短,都是直接用向導創(chuàng)建完后直接使用,這點上我感覺很慚愧,不過我會在后面的學習中學會使用SQL SERVER數據庫,希望通過它的學習來加深自己對數據庫的理解并熟練使用。在這次數據庫的設計中,我感覺到隨著學生成績管理類型的不斷增加和成績管理要求的不斷提高,管理方面的工作量將會越來越大,并且其工作將是一件十分煩瑣和非常容易出錯的事情。在這樣的情況下有一個實用學生成績管理系統是有其必然性的,如果能做出一個完善的學生成績管理系統就使管理方面的工作量減少很多。在這次的課設雖然僅僅對學生成績管理系統進行建模,功能實現簡單,但我從中學會了很多,也感到自身知識的貧乏,希望在日后的努力中能實現該系統,爭取做出一個完善的系統。在此意謝謝老師的指導,在后面的學習中我會更加努力的。九參考文獻1.數據庫:原理編程與性能,高等教育出版社,Parick oNeil, Elizabeth ONeil編著,2005.7:2.數據庫系統概論,高等教育出版社,王珊,薩師煊編著,2006.05.3黃德才,數據庫原理及其應用教程 科學出版社 2003:4.王亞平,數據庫系統工程師考試輔導 西安電子科技大學出版社 2004:5.張龍祥,數據庫原理與設計人民郵電出版社 2002。
總結
以上是生活随笔為你收集整理的c语言成绩管理系统完整vc6,学生成绩管理系统源代码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 中国 外包 2012(zz.IS2120
- 下一篇: android程序字体大小,Androi