-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmain.cpp
32 lines (32 loc) · 836 Bytes
/
main.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
#include<bits/stdc++.h>
#include "customer.cpp"
#include "database.cpp"
#include "moderator.cpp"
#include "shop.cpp"
#include "shopkeeper.cpp"
#include "network.cpp"
#include "terminal.cpp"
#include "utilities.cpp"
// #include "deliveryboy.cpp"
#include "customer_portal.cpp"
#include "shopkeeper_portal.cpp"
#include "moderator_portal.cpp"
#include "item.cpp"
using namespace std;
typedef unsigned long long int ulli;
int main()
{
premain();
Utilities::loading(50);
system("clear");
string email=Terminal::initial_display();
if(email.size()==0)
return -1;
if(is_customer(email))
return customer_portal(email);
if(is_shopkeeper(email))
return shopkeeper_portal(email);
if(is_moderator(email))
return moderator_portal();
return register_user(email);
}