/
StudentList.h
74 lines (67 loc) · 1.66 KB
/
StudentList.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
#ifndef STUDENTLIST_H_
#define STUDENTLIST_H_
#include "Student.h"
#include <iostream>
#include <list>
#include <stdlib.h>
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <sstream>
typedef std::list<Student>::iterator student_pos;//pointer to a student on the list
class StudentList {
protected:
list<Student> stu_list;
string output_text_file;
string input_text_file;
public:
StudentList();
StudentList(string);
~StudentList();
//StudentList.cpp
bool isValidID(int);
student_pos posOfID(int);
int newID();
bool userConfirm();
////////////////////////////
//StudentMainScreen.cpp
void mainScreen();
////////////////////////////
//StudentFileController.cpp
void subString(string);
void readFile(string);
void writeFile(string);
void printStuList();
////////////////////////////
//StudentSearch.cpp
void mainSearch();
void searchByName();
void searchByDOB();
void searchByAddress();
void searchByEnterYear();
void searchByClassName();
void searchByMajor();
////////////////////////////
//StudentInfoChange.cpp
void mainChangeStudentInfo();
void changeStudentInfo(int);
void changeName(int);
void changeDOB(int);
void changeAddress(int);
void changeEnterYear(int);
void changeClassName(int);
void changeMajor(int);
////////////////////////////
//StudentAdd.cpp
void mainAddStudent();
void createStudent();
//void directAddStudent(int, string, string, string, int, string, string);
void addStudent(Student);
////////////////////////////
//StudentRemove.cpp
void mainRemoveStudent();
void removeStudent();
////////////////////////////
};
#endif