-
大小: 356KB文件類型: .zip金幣: 2下載: 1 次發(fā)布日期: 2021-07-14
- 語言: C/C++
- 標(biāo)簽:
資源簡介
c語言版的學(xué)生成績管理系統(tǒng),有ppt和Word文檔,分管理員賬戶與學(xué)生賬戶,代碼長度1000行+;是一個(gè)完整的實(shí)驗(yàn)報(bào)告

代碼片段和文件信息
?/*
2016.8.28
學(xué)生成績管理系統(tǒng)?C語言?
*/
?
#include?
#include?
#include?
#include?
#include??
#include?
?
#define?CLASS?6
#define?MAXID?10
#define?MAXNAME?15
#define?MALLOC?(Student*)?malloc(sizeof(Student))
?
/*?學(xué)生數(shù)據(jù)結(jié)構(gòu)?*/
typedef?struct?node
{
????char?id[20];???????//?學(xué)號(hào)?
????char?name[15];?????//名字?
????int?score[CLASS];??//單科分?jǐn)?shù)?
????int?sum;???????????//?總分?
????double?ave;????????//平均分?
????struct?node?*next;
}?Student;
?
/*?頭指針?*/
Student?*head?=?NULL;
/*?臨時(shí)指針?*/
Student?*tmp?=?NULL;
/*?課程名稱?*/
char?CLASSNAME[CLASS][30]?=?{“物理“?“化學(xué)“?“計(jì)算機(jī)“?“英語“?“數(shù)學(xué)“?“體育“};
/*?命令開關(guān)?*/
int?SWITCH[16]?=?{0?0?0?0?0?0?1?0?0?0?0?0?0?0?0?0};
?
/*
主菜單聲明?
*/
int?AdministratorMenu();?
int?Administrator();
int?user();
int?userMenu();
??
Student*?Init();
int?CheckID(char*);
int?CheckName(char*);
int?CheakScore(int?score);
int?IsSameID(char*);
void?InputNodeInfo(Student*);
void?OutputNodeInfo(Student*);
Student*?SearchFrontNode(Student*);
void?DeleteNode(Student*);
void?exit();
void?exitui();
void?IDSearch();
/*?
插入記錄函數(shù)的聲明?
*/
void?InsertBefore();
/*
?創(chuàng)建鏈表的函數(shù)聲明?
*/
void?InputList();??
Student*?SearchID(char*);
Student*?SearchName(char*);
void?SearchDeleteNode();
void?OutList();
void?SearchPrintNode();
void?Compute();
int?CmpID(Student*?Student*?int);
int?CmpSum(Student*?Student*?int);
int?CmpScore(Student*?Student*?int);
Student*?SearchMaxNode(int?(*cmp)(Student*?Student*?int)?int);
Student*?Sort(int?(*cmp)(Student*?Student*?int)?int);
/*
打開文件的函數(shù)聲明?
*/
void?OutputToFile(FILE*?Student*?int);
/*
追加處理的函數(shù)聲明
*/?
void?InsertAfter(Student*);
/*
保存至文件函數(shù)聲明?
*/?
void?SaveToFile();
/*
讀取文件的函數(shù)聲明?
*/?
void?LoadFile();
/*
???復(fù)制文件的函數(shù)?
*/
void?CopyFile();
/*
插入到文件的函數(shù)
*/
void?InsertToFile();
/*
釋放節(jié)點(diǎn)函數(shù)?
*/
void?FreeList(Student*?p);
/*
開始函數(shù)聲明
*/
void?Stat();
/*
退出函數(shù)聲明?
*/?
void?Quit();
?
?
int?main()
{?
?????system(“cls“);
?????system(“color?0A“);
?????printf(“\n\n\n\n\n“);
?printf(“\t\t\t■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■\n“);
?????printf(“\t\t\t■????????????????????????????????????????????????????????????■\n“);
?printf(“\t\t\t■????????????????????????????????????????????????????????????■\n“);
?????printf(“\t\t\t■?????????????????歡迎使用多功能成績管理系統(tǒng)?????????????????■\n“);
?printf(“\t\t\t■????????????????????????????????????????????????????????????■\n“);
?printf(“\t\t\t■????????????????????????????????????????????????????????????■\n“);
?printf(“\t\t\t■????????????????????????????????????????????????????????????■\n“);
?printf(“\t\t\t■????????????????????????????????????????????????????????????■\n“);
?printf(“\t\t\t■????????????????????????????????????????????????????????????■\n“);
?printf(“\t\t\t■????????????????????????????????????????????????????????????■\n“);
?printf(“\t\t\t■??????????????????????????????????????????????????????
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????162816??2016-10-13?12:41??11A109?實(shí)驗(yàn)報(bào)告.doc
?????文件???????26189??2016-10-13?12:41??11A109.cpp
?????文件??????374038??2016-10-13?12:41??11A109.pptx
評(píng)論
共有 條評(píng)論