C实现简单的学生信息管理系统控制台程序

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

C实现简单的学生信息

管理系统控制台程序 Document serial number【LGGKGB-LGG98YT-LGGT8CB-LGUT-

<< endl << endl;

cout << "按下1:进入学生信息管理系统." << endl;

cout << "按下0:退出." << endl;

cout << "-----------------------------------------------------" << endl<

cin >> flagOperateInformation;

();

cout << endl;

if (flagOperateInformation)

EditMenu();

}

}

<< endl;

cout << "按下2:修改学生信息." << endl;

cout << "按下3:删除学生信息." << endl;

cout << "按下4:显示学生信息." << endl;

cout << "按下5:按学号升序排序" << endl;

cout << "按下6:读入已有信息(暂时没实现)" << endl;

cout << "按下7:将信息输出(暂时没实现)" << endl;

cout << "按下8:显示系统内所有学生的信息" << endl;

cout << "按下0:返回上一级." << endl;

cout << "--------------------------------------------" << endl << endl;

cin >> flagContinueOperation;

();

cout << endl;

switch (flagContinueOperation)

{

case 1:AddStudentPersonalInformation(1); break;

case 2:ModifyStudentInformation(); break;

case 3:DeleteStudentInformation(); break;

case 4:DisplayStudentInformation(); break;

case 5:RankByID(); break;

case 6:cout << "功能暂未实现" << endl; break;

case 7:cout << "功能暂未实现" << endl; break;

case 8:DisplayAllStudentInformation(); break;

case 0:break;

}

}

}

tudent_WritePersonalInformation(iD,name,address,phone);

cout << "基本信息输入成功!" << endl

<< "------------------------------" << endl;

}

tudent_WriteMaPhEgGrade(mathGrade, physicsGrade, englishGrade);

cout << "学习成绩输入成功!" << endl

<< "------------------------------" << endl;

}

tudent_WriteOtherGrade(peerGrade, teacherGrade, ethicGrade);

cout << "其他成绩输入成功!" << endl

<< "------------------------------" << endl;

}

RankByGrade();

RankByTotalGrade();

cout << "学生成绩录入成功!" << endl;

cout << "-------------------------------------" << endl<

}

void SearchStudent()

{

using namespace std;

using namespace studentInformation;

char ID[13];

cout << "请输入学生的学号:"<

cin >> ID;

();

cout << "------------------------------"<

int vectorSize = ();

int i = 0;

while ((i

{

flagStudentFound = strcmp(ID, studentVector[i].Student_ReadID());

i = i + 1;

}

if (flagStudentFound == 0)

{

flagStudentChoose = i - 1;

flagStudentFound = 1;

cout << "您所查找的学生信息如下:"<

studentVector[flagStudentChoose].Student_DisplayInformation();

}

else

{

cout << "未找到该学生" << endl;

}

}

void ModifyStudentInformation()

{

using namespace std;

using namespace studentInformation;

int searchVectorSize = ();

if (searchVectorSize == 0)

{

cout << "---------------------------------------" << endl;

cout << "当前系统中没有学生信息,请先添加学生信息!" << endl;

cout << "---------------------------------------" << endl;

}

else

{

SearchStudent();

cout << "您想对该学生的信息进行修改吗" << endl;

cout << "按下1:是的。" << endl;

cout << "按下0:放弃修改。" << endl;

cout << "---------------------------------------" << endl;

int flagModify;

cin >> flagModify;

();

if ((flagModify == 1)&(flagStudentFound == 0))

{

AddStudentPersonalInformation(2);

}

}

}

void DeleteStudentInformation()

{

相关文档
最新文档