blob: ff0a9e73d0aafdb6205dc23f534c42dfd5bab1ab (
plain)
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
|
#ifndef RECORDS_H
#define RECORDS_H
#include <string>
class Student {
private:
int id;
std::string name;
public:
Student(int s_id, std::string s_name);
int get_id();
std::string get_name();
};
class Course {
private:
int id;
std::string name;
unsigned char credits;
public:
Course(int c_id, std::string c_name, unsigned char c_credits);
int get_id();
std::string get_name();
int get_credits();
};
class Grade {
private:
int student_id;
int course_id;
char grade;
public:
Grade(int g_student_id, int g_course_id, char g_grade);
int get_student_id();
int get_course_id();
char get_grade();
};
#endif
|