-
Notifications
You must be signed in to change notification settings - Fork 0
/
class_info.h
107 lines (94 loc) · 2.06 KB
/
class_info.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/**
* **************************************************
*
* @coding UTF-8
*
* @file class_info.h
*
* @author HDM
*
* @copyright HDM
*
* @date 2021/02/01 16:24:30
*
* @version 1.0
*
* @description 封装了适合本工程的班级类对象
*
* **************************************************
*/
#ifndef CLASS_INFO_H
#define CLASS_INFO_H
#include <iostream>
// 行政班级号最大长度
#define MAXSIZE_CLASS_ID 6
// 专业名称最大长度
#define MAXSIZE_CLASS_MAJOR 24
/**
* **************************************************
*
* @brief 类对象:行政班级信息
*
* **************************************************
*/
class class_info
{
public:
/**
* **************************************************
*
* @brief 打印当前类所有非空成员变量,空格间隔,尾部回车
*
* @retval None
*
* **************************************************
*/
void print_info();
/**
* **************************************************
*
* @brief 隶属行政班级号(唯一编号)(默认=nullptr)
*
* @details length: MAXSIZE_CLASS_ID
*
* **************************************************
*/
char* class_id = nullptr;
/**
* **************************************************
*
* @brief 管理员名称(默认=nullptr)
*
* @details length:MAXSIZE_INPUT_USER_ID
*
* **************************************************
*/
char* class_admin = nullptr;
/**
* **************************************************
*
* @brief 班级归属年级(默认=-1)
*
* **************************************************
*/
int class_grade = -1;
/**
* **************************************************
*
* @brief 班级归属专业(默认=nullptr)
*
* @details length: MAXSIZE_CLASS_MAJOR
*
* **************************************************
*/
char* class_major = nullptr;
/**
* **************************************************
*
* @brief 班级号(默认=-1)
*
* **************************************************
*/
int class_number = -1;
};
#endif