forked from AdnanMuhib/Schoolmanagement_system
-
Notifications
You must be signed in to change notification settings - Fork 2
/
high.cpp
45 lines (41 loc) · 883 Bytes
/
high.cpp
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
#include "high.h"
#include<iostream>
using namespace std;
high::high()
{
labh = new lab();
clsh = new classroom();
enh = new enroll();
resulth = new result();
}
void high::showhigh() // show the features of the primary poration the school
{
char hminor;
cout << "\tWelcome to Primary School\n" << endl;
cout << "\t\ta-Labs \n\t\tb-classRooms \n\t\tc-Enrollment\n\t\td-Result" << endl;
cout << "\tEnter a, b, c or d : ";
cin >> hminor; //slect a feature like labs,classrooms,results, and enrolment systems
switch (hminor)
{//switch start
case'a':
{labh->printlabh();
break;
}
case'b':
{clsh->printcrh();
break;
}
case'c':
{enh->showHighoption();
break;
}
case'd':
{ resulth->resulthigh();
break;
}
default:
{cout << "Wrong input" << endl;
break;
}
}//end switch
}