-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathload.cpp
107 lines (103 loc) · 2.1 KB
/
load.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#include "load.h"
void start_load()
{
// system("clear");
Admin::adds(5,5);
cout << "|| WELCOME TO STUDENT DATA MANAGER ||" << endl;
Admin::adds(5,1);
cout << "Press Enter to proceed..." << endl;
getchar();
system("clear");
}
void end_load()
{
system("clear");
Admin::adds(5,5);
cout << "|| CLOSING STUDENT DATA MANAGER ||" << endl;
Admin::adds(5,1);
cout<< "ADIOS, AMIGO ";
fflush(stdout);
sleep(1);
cout<<":";
fflush(stdout);
sleep(1);
cout<<"-";
fflush(stdout);
sleep(1);
cout<<")"<<endl;
fflush(stdout);
sleep(1);
system("clear");
}
void print_label(int n)
{
Admin::adds(s1,2);
switch (n)
{
case 0:
cout << "------------------"<<endl;
Admin::adds(s1);
cout << "|| ADMIN'S MENU ||"<< endl;
Admin::adds(s1);
cout<< "------------------\n"<<endl;
break;
case 1:
cout << "------------------------" << endl;
Admin::adds(s1);
cout << "|| ADD STUDENT RECORD ||" << endl;
Admin::adds(s1);
cout << "------------------------" << endl;
break;
case 2:
cout << "---------------------------" << endl;
Admin::adds(s1);
cout << "|| TOTAL STUDENT RECORDS ||" << endl;
Admin::adds(s1);
cout << "---------------------------" << endl;
break;
case 3:
cout << "---------------------------" << endl;
Admin::adds(s1);
cout << "|| DELETE STUDENT RECORD ||" << endl;
Admin::adds(s1);
cout << "---------------------------" << endl;
break;
case 4:
cout << "---------------------------" << endl;
Admin::adds(s1);
cout << "|| UPDATE STUDENT RECORD ||" << endl;
Admin::adds(s1);
cout << "---------------------------" << endl;
break;
case 5:
cout<<"------------------"<<endl;
Admin::adds(s1);
cout<<"|| SEARCH BY ID ||"<<endl;
Admin::adds(s1);
cout<<"------------------"<<endl;
break;
default:
return;
}
// Admin::adds(s2);
}
void load_view(int tot)
{
cout << "ID";
Admin::adds(5);
cout << "NAME";
Admin::adds(5);
cout << "COURSE";
Admin::adds(3);
cout << "DEPARTMENT";
Admin::adds(3);
cout << "GENDER";
Admin::adds(2);
cout << " AGE";
Admin::adds(2);
cout << " PH_No." << endl;
for (int i = 0; i < tot + 12; i++)
cout << "-";
cout << "\n"
<< endl;
}