-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path23i-2014_B.cpp
72 lines (64 loc) · 2.24 KB
/
23i-2014_B.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
#include "HEADER.h"
#include "WAREHOUSE.h"
#include "simulator.h"
using namespace std;
int main(){
LOADING_LINE();
cover_tags();
while(true){
char choice;
cout<<endl<<ANSI_COLOR_ORANGE<<"\t -"<<setfill('-')<<setw(57)<<"-"<<setfill(' ')<<endl;
cout<<"\t | "<<setw(55)<<left<<"<< ENTER THE CORRESPONDING CHARACTER TO PROCEED >> "<<"|\n";
cout<<"\t | "<<setfill('-')<<setw(55)<<""<<setfill(' ')<<"|\n";
cout<<"\t | "<<setw(55)<<left<<"A. WAREHOUSE STOCK MANAGEMENT "<<"|\n";
cout<<"\t | "<<setw(55)<<left<<"B. SEARCH, ADD, REMOVE & UPDATE ANY ITEM IN STOCK"<<"|\n";
cout<<"\t | "<<setw(55)<<left<<"C. DO PRICE BASED ANALYSIS. "<<"|\n";
cout<<ANSI_COLOR_BOLD_RED<<"\t | "<<setw(55)<<left<<"E. EXIT [RETURN 0]. "<<"|\n";
cout<<"\t -"<<setfill('-')<<setw(57)<<"-"<<setfill(' ')<<ANSI_COLOR_RESET;
cin>>choice;
switch (choice)
{
case 'A':
case 'a':
{
LOADING_LINE();
OTHER_OPERATIONS();
break;
}
break;
case 'B':
case 'b':
{
LOADING_LINE();
STOCK_OPERATIONS();
break;
}
break;
case 'C':
case 'c':
{
LOADING_LINE();
PRICE_BASED_QUERIES();
break;
}
break;
case 'E':
case 'e':
{
LOADING_LINE();
cout<<ANSI_COLOR_BOLD_GREEN<<"\n\t -------------------------------------- \n";
cout<<"\t | THANK YOU FOR USING OUR SYSTEM. |\n";
cout<<"\t -------------------------------------- \n"<<ANSI_COLOR_RESET;
return 0;
}
default:
{
cout<<ANSI_COLOR_BOLD_RED<<"\n\t\t--------------------------------------\n";
cout<<"\t\t| !!!! ENTER A VALID INPUT !!!! |\n";
cout<<"\t\t----------------------------------------\n"<<ANSI_COLOR_RESET;
break;
}
}
}
return 0;
}