-
Notifications
You must be signed in to change notification settings - Fork 1
/
cbhproj.cpp
66 lines (61 loc) · 1.02 KB
/
cbhproj.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
//Main CBH project file
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
string UserWait();
void PrintHdMenu();
void Option1(); // menus
void Option2(); // ssn search
void Option3(); // oln search
void Option4(); // add
void Option5(); // delete
void Option6(); // update
void Option7(); // display all records
int main()
{
bool loop = true;
while(loop)
{
string opt;
PrintHdMenu();
getline(cin,opt);
cin.sync();
system("clear");
switch(opt[0])
{
case'1':
Option1();
break;
case'2':
Option2();
break;
case'3':
Option3();
break;
case'4':
Option4();
break;
case'5':
Option5();
break;
case'6':
Option6();
break;
case'7':
Option7();
break;
case'8':
case'Q':
case'q':
case'E':
case'e':
loop = false;
break;
default:
cerr << "Error, invalid entry.";
UserWait();
break;
}
}
}