-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.cpp
42 lines (40 loc) · 1.12 KB
/
menu.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
#include"header.h"
void menu()
{
system("cls");
int i;
cout<<"\n\n\t\t\t\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2 MAIN MENU";
cout<<" \xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2"<<endl;
cout<<"\n\t\t\t\xDB\xDB\xDB\xDB\xB2 1. Add Books "<<endl;
cout<<"\n\t\t\t\xDB\xDB\xDB\xDB\xB2 2. Delete books"<<endl;
cout<<"\n\t\t\t\xDB\xDB\xDB\xDB\xB2 3. Search Books"<<endl;
cout<<"\n\t\t\t\xDB\xDB\xDB\xDB\xB2 4. Issue Books"<<endl;
cout<<"\n\t\t\t\xDB\xDB\xDB\xDB\xB2 5. View Book list"<<endl;
cout<<"\n\t\t\t\xDB\xDB\xDB\xDB\xB2 6. Edit Book's Record"<<endl;
cout<<"\n\t\t\t\xDB\xDB\xDB\xDB\xB2 7. Close Application"<<endl;
cout<<"\t\t\t------------------------------------------"<<endl;
cout<<"\t\t\tEnter your choice: ";
int ch;
cin>>ch;
switch(ch)
{
case 1:
add_books();
break;
case 2:
delete_book();
break;
case 3:
search_book();
break;
case 4:
issue_book();
break;
case 5:
book_list();
break;
case 6:
edit_book();
break;
}
}