-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.cpp
More file actions
49 lines (46 loc) · 1.2 KB
/
main.cpp
File metadata and controls
49 lines (46 loc) · 1.2 KB
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
#include <bits/stdc++.h>
using namespace std;
#include "main.hpp"
data d;
int main()
{
// auto s_list = d.get_student_list();
// displayAll(s_list, "DOB_ASC");
cout << "Welcome to College Databse Managemet System!\n\n";
cout << "Input Codes: \n";
cout << "0. To Exit.\n";
cout << "1. Sort and Filter the database.\n";
cout << "2. Enter the ADMIN Portal.\n";
cout << "3. Clear screen.\n";
cout << "############################################\n";
cout << "\nYour input: ";
int ch = 1;
string dummy = "";
while (ch != 0)
{
cin >> ch;
switch (ch)
{
case 1:
interface();
break;
case 2:
admin_portal();
break;
case 0:
break;
default:
system("clear");
}
// system("clear");
if(ch == 0) break;
cout << "############################################\n";
cout << "Input Codes: \n";
cout << "0. To Exit.\n";
cout << "1. Sort and Filter the database.\n";
cout << "2. Enter the ADMIN Portal.\n";
cout << "3. Clear screen.\n";
cout << "\nYour input: ";
}
return 0;
}