-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.h
More file actions
30 lines (23 loc) · 751 Bytes
/
database.h
File metadata and controls
30 lines (23 loc) · 751 Bytes
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
#ifndef database_h
#define database_h
#include <string>
#include <vector>
namespace CHNJAR003
{
struct Student
{
std::string fName;
std::string sName;
std::string studentNumber;
std::string classRecord;
};
extern std::vector<Student> StudentRecords;
void addStudent(const std::string fName, const std::string sName, const std::string studentNumber, const std::string classRecord);
void readDatabase(const std::string fileName);
void saveDatabase(const std::string fileName);
std::string displayStudentData(const std::string studentNumber);
float gradeStudent(const std::string studentNumber);
Student parseFileLine(const std::string line);
std::string serialiseStudent(const Student tempStudent);
} // namespace CHNJAR003
#endif