Giter VIP home page Giter VIP logo

c-language-work-management-system's Introduction

C-language-Work-Management-System

C语言作业平时管理系统

结构体类型

Student结构体

成员:

  1. 学生证号
  2. 学生名称
  3. 学生班级号
  4. 最终成绩
  5. 实验作业结构体
  6. 电子作业结构体

ElectronicWork结构体

成员:

  1. 成绩表
  2. 课程表
  3. 已经修读的课程数量
  4. 已经获得的成绩
  5. 作业是否完成
  6. 结课标记

ExperimentalWork结构体

成员:

  1. 成绩表
  2. 实验项目表
  3. 已经修读的课程数
  4. 已经获得的分数
  5. 作业完成标记
  6. 结课标记

StudentArray结构体

成员:

  1. 学生数组
  2. 数组长度

函数

学生处理相关函数

定义在Student.h头文件中

学号合法性检查函数

函数定义:

bool checkStudenId(std::string studentId);

函数功能:

实现对于输入学号合法性的检查

创建学生结构体函数

函数定义:

void initStudent();

函数功能:

新建一个学生结构体,并加入结构体数组中

学生信息打印方法

函数定义:

void toString(Student stu);

函数功能:

实现对于一个学生结构体的打印

登记成绩方法

函数定义:

void enteringGrade();

函数功能:

实现依据学号对于成绩的录入

修改学生信息方法

函数定义:

void setter();

函数功能:

实现对于学生信息的修改

电子作业处理相关函数

打印电子作业函数

函数定义:

void toString(ElectronicWork electronicWork);

函数功能:

实现对于电子作业结构体的打印

设置电子作业方法

函数定义:

void setter(ElectronicWork *electronicWork);

函数功能:

实现对于电子作业信息的修改

设置结业标记函数

函数定义:

void setAllTakenClass(ElectronicWork *electronicWork);

函数功能:

用于初始化结构体,设置指针所指向结构体为全部修完状态

检查是否修完

函数定义:

void checkAllFinishWork(ElectronicWork* electronicWork);

函数功能:

检查是否修完,修完置标志位为true

实验处理相关函数

打印实验作业结构体

函数定义:

void toString(ExperimentalWork experimentalWork);

函数功能:

打印实验信息

设置初始化状态函数

函数定义:

void setter(ExperimentalWork* experimentalWork);
void setAllClass(ExperimentalWork* experimentalWork);

函数定义:

设置指针所指向的结构体为修满/修满状态

检查是否修完函数

函数定义:

void checkAllContentFinish(ExperimentalWork* experimentalWork);

函数功能:

检查是否修完所有课程,修完设置为true

查找相关函数

按学号查找方法

函数定义:

Student* findStudentById(std::string studentId);

函数功能:

接受一个string对象,对数组中学生结构体的学号成员进行匹配,找到返回其指针,未找到返回空指针

按作业输出信息方法

函数定义:

void findImformationByContent();

函数功能:

通过对于作业的选择,实现对特定作业的打印

按姓名查找芳芳

函数定义

void findImformationByName();

函数功能:

接受一个姓名的输入,实现对于姓名的模糊查找,之后输出匹配的信息

学号查找输出方法

函数定义:

void findImformationById();

函数功能:

实现对于按学号查找和三个结构体toString方法的打包

数据初始化相关函数

创建初始数据

函数定义:

void initArray();

函数功能:

生成四个供测试使用的数据

安全检查函数

课程号合法性检查

函数定义

bool checkContentId(int contentId);

函数功能:

接受一个整型输入,检查是否合法

成绩类型合法性检查

函数定义:

bool checkJobType(int jobType);

函数功能:

接受一个整型输入,检查是否合法

统计相关函数

生成总成绩方法

函数定义:

void getfinalScore();

函数功能:

生成数组内所有结构体当前的总成绩

输出班级信息方法

函数定义:

void getClassImformation();

函数功能:

实现对于特定班级号班级情况的打印

输出特定学生信息方法

函数定义:

void getImformationByStudent();

函数功能:

实现按学号对于特定学生信息的打印

UI相关函数

void contentMenu();

void jobTypeMenu();

void welcomUI();

void functionMenu();

void statisticalMenu();

void choiceFunction();

void findUI();

void choiceFind();

void modifyUI();

void choiceModify();

void statisticalUI();

void choiceStatistics();

void pauseFunction();

各部分UI定义

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.