學生管理系統 大工cpp

2021-09-29 06:27:09 字數 1602 閱讀 6042

//題目:基於鍊錶的學生資訊管理系統

//要求:

//    (1)插入節點:輸入學生資訊後,生成節點並插入鍊錶中;

//    (2)刪除節點:根據給定的學生姓名或學號刪除該學生節點;

//    (3)查詢節點:根據給定的學生姓名或學號查詢學生資訊,並顯示出來;

//    (4)查詢並顯示總成績最高和最低的學生資訊;

//    (5)統計鍊錶中的學生人數;

//    (6)(時間允許時選做)對鍊錶節點按總成績從高到低排序。

//   注:

//   (1)每個學生資訊包括:姓名、學號、性別、出生年月日和3門課的成績;

//   (2)系統執行後,首先顯示乙個簡易的選單,基於選單操作來完成上述功能;

//   (3)鍊錶的功能需要程式設計實現。

#include

#include

using namespace std;

class date//日期類

if(day>max) return false;

return true;

} friend istream &operator>>(istream &cin, date &date)//輸入流修改

return cin;

} friend ostream &operator<<(ostream &cout, const date &date)

cout<<"請輸入出生年月日(例如1999 12 31):";

cin>>date;

pointer->input(name_,number_);

pointer->next = null;

last->next = pointer;

last = last->next;

this->count ++;

}void delete()//根據輸入的s(姓名或學號)刪除學生節點

if(flag=='y'||flag=='y')

}if(k == 1)

break;    

} if(find == false)

cout<<"很遺憾,沒有您想刪除的這個人"<>s;

bool found=false;

student *pointer =first;

for(;pointer!=last;pointer=pointer->next)

} if(found == false) cout<<"很遺憾,沒有您要找的人"for(;pointer!=null;pointer=pointer->next)

cout<<"最大總分為:"next)

}for(pointer=first->next;pointer!=null;pointer=pointer->next)}} 

//void count();//統計鍊錶中的學生人數

void sort()//對鍊錶節點按總成績從高到低排序}}

}cout<<"----------------------排序後輸出結果--------------------"next)

}void clear()//刪去所有結點

first=last;

} int get_count()

};

學生管理系統

include stdio.h include include include struct student void print void void display struct student head struct student creat q next null display head ...

學生管理系統

任務 提供 管理員 和 使用者 乙個系統 可以檢視學生資訊 系統提供 帳號登入 資訊管理功能 管理員使用者可以對學生資訊進行 增 刪 改 查 並 同時能夠 管理賬戶 資訊 普通使用者 只能進行 對資訊的查詢功能 可以根據學號 或者 姓名查詢 1.初始化 3個檔案 配置檔案 帳號資訊檔案 學生資訊檔案...

學生管理系統

注釋 這個小的系統,主要體現了c語言的 分而治之,重用 也就是老師教函式時給我們說的最核心的思想。主要吧,就是先在開始 定義後面要使用的函式,再定義一些全域性變數 再在主函式中一一呼叫。在主函式後面 再一一的寫這些函式體 也就是乙個個小的演算法慢慢湊起來 就組成了 include include i...