-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreport.cpp
49 lines (47 loc) · 1.19 KB
/
report.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
#include "report.hpp"
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
using namespace std;
void report_header()
{
cout << "\n\t\t\t---------------------------------------------------------";
cout << "\n\t\t\t|\t\t\t\t\t\t\t|";
cout << "\n\t\t\t|\t\t\t\tReport\t\t\t|";
cout << "\n\t\t\t|\t\t\t\t\t\t\t|";
cout << "\n\t\t\t---------------------------------------------------------";
}
void report()
{
int choice;
do
{
system("cls");
report_header();
cout << "\n\n\t\t\t\t1. Stock Sales Chart";
cout << "\n\t\t\t\t2. Today's sales";
cout << "\n\t\t\t\t3. Customers Favourite";
cout << "\n\t\t\t\t4. Return to employee page";
cout << "\n\t\t\t\t5. Exit";
cout << "\n\n\t\t\t\tYour Choice:";
cin >> choice;
switch (choice)
{
case 1:
cout << "case 1";
break;
case 2:
cout << "case 2";
break;
case 3:
cout << "case 3";
break;
case 4:
break;
case 5:
exit(0);
default:
cout << "wrong choice!!";
}
} while (choice != 4);
}