91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 12KB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發布日期: 2021-07-20
  • 語言: C/C++
  • 標簽: C++??

資源簡介

學生信息管理系統,包括管理員和學生兩大模塊,管理員具有班級管理,教師管理,學生管理,課程管理,學生選課,成績管理六個模塊功能,學生具有修改密碼,課程瀏覽,選課瀏覽,個人選課,成績查詢,個人信息六個模塊的功能。

資源截圖

代碼片段和文件信息

#include?
#include“stdlib.h“

#include?“Admin.h“

Admin?::?Admin(){
}

void?Admin::?showGrandAll(){
list?::?iterator?it?=?grands.begin();
while(it!=grands.end()){
size_t?cc[20];
it->getCompulsoryCourse(cc);
cout<<“id:?“<getId()<<“?“<getName()< cout<<“CompulsoryCourse:“;
for(int?i=0;i<20;i++){
if(cc[i]!=0&&selectCourse(cc[i])){
cout<getName()<<“?“;
}
}
cout<
size_t?oc[20];
it->getOptionalCourse(oc);
cout<<“OptionalCourse:“;
for(int?i=0;i<20;i++){
if(oc[i]!=0){
if(selectCourse(oc[i])){
cout<getName()<<“?“;
}
}
}
it++;
cout< }
}

Grand*?Admin::?selectGrand(size_t?id){
list?::?iterator?it?=?grands.begin();;
while(it!=grands.end()){
if(it->getId()==id){
return?&*it;
}
it++;
}
return?NULL;
}

void?Admin::?addGrand(){??
size_t?id=1501;
char?name[20];
size_t?size=0;

if(!grands.empty()){
id=grands.back().getId()+1;
}
cout<<“Input?grand?name:?“;
cin>>name;

Grand*?grand?=?new?Grand(?idname);
grands.push_back(*grand);
return;
}

void?Admin::?modifyGrand(size_t?id){
list?::?iterator?it?=?grands.begin();
char?name[20];
while(it!=grands.end()){
if(it->getId()==id){
cout<<“Input?new?name:?“;
cin>>name;
it->setName(name);
cout<<“success“< return;
}
it++;
}
cout<<“Not?find?this?grand.?“< return;
}

void?Admin::?deleteGrand(size_t?id){
list?::?iterator?it?=?grands.begin();
string?name;
while(it!=grands.end()){
if(it->getId()==id){
grands.erase(it++);
cout<<“Delete?success“;
getchar();
return;
}
it++;
}
cout<<“Not?find?this?grand“;
getchar();
return;
}


//teacher?manager
void?Admin::?showTeacherAll(){
list?::?iterator?it?=?teachers.begin();
while(it!=teachers.end()){
cout<toString()< }
}

Teacher*?Admin::?selectTeacher(size_t?id){
list?::?iterator?it?=?teachers.begin();;
while(it!=teachers.end()){
if(it->getId()==id){
return?&*it;
}
it++;
}
return?NULL;
}

void?Admin::?addTeacher(){
size_t?id=10150101;
char?name[20];
char?sex;
size_t?age;
if(!teachers.empty()){
id=teachers.back().getId()+1;
}
cout<<“input?teacher?message:(?name?sex?age?)“;
cin>>name>>sex>>age;
Teacher*?teacher?=?new?Teacher(idnamesexage);
teachers.push_back(*teacher);
cout<<“success“<}

void?Admin::?modifyTeacher(size_t?id){
list?::?iterator?it?=?teachers.begin();
char?name[20];
char?sex;
size_t?age;
while(it!=teachers.end()){
if(it->getId()==id){
cout<<“input?new?massage:?(name?sex?age)“;
cin>>name;
cin>>sex;
cin>>age;
it->setName(name);
it->setSex(sex);
it->setAge(age);
cout<<“modify?success“< return;
}
it++;
}
cout<<“Not?find“<

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-01-09?14:25??StudentMS\
?????文件?????????294??2019-01-09?14:26??StudentMS\Makefile.txt
?????目錄???????????0??2019-01-09?14:22??StudentMS\include\
?????文件????????1557??2019-01-08?16:26??StudentMS\include\Admin.h
?????文件?????????528??2019-01-08?15:53??StudentMS\include\Course.h
?????文件?????????732??2019-01-08?15:50??StudentMS\include\Grand.h
?????文件????????1216??2019-01-08?15:56??StudentMS\include\Student.h
?????文件?????????665??2019-01-08?15:57??StudentMS\include\Teacher.h
?????文件????????1065??2019-01-08?16:28??StudentMS\include\User.h
?????目錄???????????0??2019-01-09?14:23??StudentMS\src\
?????文件???????11987??2019-01-09?14:18??StudentMS\src\Admin.cpp
?????文件?????????520??2019-01-08?15:54??StudentMS\src\Course.cpp
?????文件????????1003??2019-01-08?15:51??StudentMS\src\Grand.cpp
?????文件????????6965??2019-01-09?14:29??StudentMS\src\Main.cpp
?????文件????????1781??2019-01-09?10:11??StudentMS\src\Student.cpp
?????文件?????????855??2019-01-08?15:58??StudentMS\src\Teacher.cpp
?????文件????????7558??2019-01-09?10:10??StudentMS\src\User.cpp

評論

共有 條評論