forked from PeterTorki/CollegeSystem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.cpp
63 lines (57 loc) · 1.6 KB
/
Main.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include <iostream>
#include <queue>
#include <conio.h>
#include <windows.h>
#include "Student_Part.cpp"
#include "Teacher.cpp"
#include "Admin.cpp"
#include "College.h"
using namespace std;
int main()
{
init_student_ids();
init_teacher_ids();
do
{
setcolor(2);
print_logo("College System");
int choice;
print(40, ' ') << " Choose who are you: \n\n";
print(50, ' ') << char(201);
for (int i = 0; i < 15; i++)
{
cout << char(205);
}
cout << char(187) << endl;
print(50, ' ') << char(186) << " 1- Student " << char(186) << endl;
print(50, ' ') << char(186) << " 2- Teacher " << char(186) << endl;
print(50, ' ') << char(186) << " 3- Admin " << char(186) << endl;
print(50, ' ') << char(186);
setcolor(12);
cout << " 4- Exit ";
setcolor(2);
cout << char(186) << endl;
print(50, ' ') << char(200);
for (int i = 0; i < 15; i++)
{
cout << char(205);
}
cout << char(188) << endl;
cout << "\n";
print(35, ' ') << "Choise : ";
setcolor(6);
cin >> choice;
cout << "\n"
<< string(35, ' ');
(choice > 3 ? Returning() : Directing());
system("CLS");
if (choice == 1) // 1 1
Ch_Student();
else if (choice == 2) // 2 2
Ch_Teacher();
else if (choice == 3)
Ch_Admin();
else
return 0;
} while (1);
}