資源簡介
c語言版的學生成績管理系統,有ppt和Word文檔,分管理員賬戶與學生賬戶,代碼長度1000行+;是一個完整的實驗報告

代碼片段和文件信息
?/*
2016.8.28
學生成績管理系統?C語言?
*/
?
#include?
#include?
#include?
#include?
#include??
#include?
?
#define?CLASS?6
#define?MAXID?10
#define?MAXNAME?15
#define?MALLOC?(Student*)?malloc(sizeof(Student))
?
/*?學生數據結構?*/
typedef?struct?node
{
????char?id[20];???????//?學號?
????char?name[15];?????//名字?
????int?score[CLASS];??//單科分數?
????int?sum;???????????//?總分?
????double?ave;????????//平均分?
????struct?node?*next;
}?Student;
?
/*?頭指針?*/
Student?*head?=?NULL;
/*?臨時指針?*/
Student?*tmp?=?NULL;
/*?課程名稱?*/
char?CLASSNAME[CLASS][30]?=?{“物理“?“化學“?“計算機“?“英語“?“數學“?“體育“};
/*?命令開關?*/
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();
/*?
插入記錄函數的聲明?
*/
void?InsertBefore();
/*
?創建鏈表的函數聲明?
*/
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);
/*
打開文件的函數聲明?
*/
void?OutputToFile(FILE*?Student*?int);
/*
追加處理的函數聲明
*/?
void?InsertAfter(Student*);
/*
保存至文件函數聲明?
*/?
void?SaveToFile();
/*
讀取文件的函數聲明?
*/?
void?LoadFile();
/*
???復制文件的函數?
*/
void?CopyFile();
/*
插入到文件的函數
*/
void?InsertToFile();
/*
釋放節點函數?
*/
void?FreeList(Student*?p);
/*
開始函數聲明
*/
void?Stat();
/*
退出函數聲明?
*/?
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■?????????????????歡迎使用多功能成績管理系統?????????????????■\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■??????????????????????????????????????????????????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????162816??2016-10-13?12:41??11A109?實驗報告.doc
?????文件???????26189??2016-10-13?12:41??11A109.cpp
?????文件??????374038??2016-10-13?12:41??11A109.pptx
- 上一篇:河南大學計算機與信息工程學院c++程序設計試卷
- 下一篇:C語言歌曲信息管理系統
評論
共有 條評論