学生成绩分析管理系统

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
DisplayChoose(char tel[]); //老师登陆
DisplayList(struct student *t); //列表界面
DisplayAnalysis(char id[][20]); //分析界面
DisplayAdd(struct student *head); //添加界面
DisplayOperate(struct student *t); //修改界面
数据成员:char Msg;//获取操作命令
bool flag;//判断操作是否正确
char tel[50];//是否错误通知
char account[20]; //账号或学号
struct student *p;//用于链表寻找节点
struct student *q; //用于链表寻找节点
成员函数:DisplayChoose(char id[][20],char n); //选择界面显示
2.5详细设计(Detail function)
系统流程图
学生操作流程图
老师操作流程图
查看流程图
分析流程图
排名流程图
添加流程图
修改流程图
删除流程图
三,类图(Class diagram)
四,编码
Controller.h
#include "iostream"
#include "fstream"
#include "iomanip"
void Quit(struct student *head); //退出
friend class Controller;//私有方法充许Controller类调用的声明
void AddData(struct student *head,struct student *t); //添加数据
bool UpData(struct student *head,struct student *t,char account[]); //更新数据
void Quit(struct student *head); //退出
2.2数据结构设计
利用结构体创建链表用来保存提取的学生信息
结构体如下:
struct student
{
char StuNo[12]; //学号
char Name[20]; //姓名
char Majors[20]; //系别
char wk.baidu.comlas[20]; //班级
DisplayDelete(struct student *t); //删除界面
DisplayExit(); //关闭界面
模型类-后台运算(Model):
数据成员:bool flag; //判断操作是否正确
char account[20]; //账号和密码
struct student head;//头链表
C++课程设计说明书
学生成绩管理分析系统
姓名:宁新丽
学号:069109141
班级:09级网工五班
指导老师:张晓民
一,目的与要求
1.1目的
1.2要求
二,需求分析
2.1功能分析
2.2数据结构设计
2.3界面设计
2.4数据存储
2.5详细设计
三,类图
四,编码
五,测试的步骤和内容
六,课程设计总结
七,参考文献
一、目的与要求
void Operate(struct student *head); //操作
void Query(struct student *head); //查找
void Analysis(struct student *head); //分析
void Ranking(struct student *head); //排名
char Msg; //获取操作命令
char tel[50]; //是否错误通知
char account[20]; //账号或学号
char id[5][20]; //选择项
struct student *head;//链表头
成员函数:void Login(); //登陆
void Menu(char Msg); //主菜单
int grade[4]; //成绩----5科成绩
struct student *next;
};
2. 3.界面设计(UI)字符界面
选择登陆权限界面
老师登陆界面
老师主菜单
学生界面
退出界面
2.4数据存储(Data storage)
数据以文件形式存储,以二进制形式顺序存储在一个文件中,是student.txt,用与存储学生成绩信息。
struct student t; //临时结构体
struct student *p;//用于链表寻找节点
struct student *q;//用于链表寻找节点
成员函数:bool Login(char account[]); //登陆
struct student* LoadData(); //数据加载
bool DeleteDate(struct student *head,char account[]); //删除数据
bool SaveDate(struct student *head); //保存数据
控制器--逻辑控制(Controller):
数据成员:bool flag; //判断操作是否正确
void Query(struct student* Head,char account[20],char Msg); //查询数据
void Analysis(struct student *head,char Msg); //分析数据
struct student* Ranking(struct student *head,char Msg); //排名数据
#include "string"
#include "windows.h"
#include "Model.h"
using namespace std;
class Controller :public View,Model//控制流程
{
public:
void Login(); //登陆
1.目的:
(1)巩固C++基础知识;
(2)能够运用面向对象方法进行类的设计;
(3)锻炼学生编程能力,解决实际问题的能力。
2.要求
基本要求:
(1)按照软件开发流程进行开发
(2)类的设计合理;包括类的继承多态等;
(3)模块划分清晰合理;
(4)实用性好。
二,需求分析
2.1功能分析
(1),定义类
视图类(View):
相关文档
最新文档