-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudent.h
42 lines (31 loc) · 904 Bytes
/
student.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
//Tim Garvin
#ifndef STUDENT_H
#define STUDENT_H
#include <iostream>
#include <string>
#include <stdlib.h>
#include <math.h>
using namespace std;
#include "hash_table.h"
class Hash_Table; //Forward declaration of class Hash_Table
//Declares class to store Student information
class Student
{
friend class Hash_Table; //Declares the class Hash_Table a friend
private:
Hash_Table *table; //Declares a Hash_Table class object
string firstName;
string lastName;
string studentID;
string classification;
string major;
string command;
bool validEntry;
public:
Student(); //Constructor
~Student(); //Destructor
void execute_command(); //Declares a function to execute an Add/Remove/Print command based on user input
string get_command(); //Declares a function to get the command entered
void check_entry(); //Declares a function to validate user input
};
#endif