Parkmanne/interfaces.cpp

70 lines
1.7 KiB
C++

#include <cstdlib>
#include <iostream>
#include <string>
using std::cout;
void interface_customer(void);
void main_interface(void)
{
int selector=0;
cout<<"\nHello, There. Welcome to the Parking Area!";
cout<<"\nPlease select an applicable option:";
cout<<"\n[1]I am a Customer.";
cout<<"\n[2]I am a Member";
cout<<"\n[3]I am an employee";
cout<<"\n[4]Clock Out";
cout<<"\n[5]Log in as Admin";
std::cin>>selector;
switch(selector){
case 1:interface_customer();break;
case 2:interface_member();break;
case 3:interface_employee();break;
case 4:clock_out();break;
case 5:interface_admin();break;
}
}
void select_cartype(void)
{
cout<<"\nWhat type of vehicle do you want to park?";
cout<<"\n[1]Bicycle";
cout<<"\n[2]Motorbike/Motorcycle";
cout<<"\n[3]Small to Medium-sized car";
cout<<"\n[4]Large Car (gives you a bigger parking space)";
std::cin>>selector;
switch(selector){
case 1:;break;
case 2:;break;
case 3:;break;
case 4:;break;
}
void select_time(void)//tijd selecteren en omzetten in uren
{
int selector=0;
int duration_in_hours=0, m=0, x=0;
cout<<"\nHow long do you want to park?";
cout<<"\n[1]Clock out when leaving";
cout<<"\n[2]A couple hours";
cout<<"\n[3]A couple days";
cout<<"\n[4]A couple weeks";
cout<<"\n[5]A couple months";
cout<<"\n[6]A couple years";
std::cin>>selector;
switch(selector){
case 1:m=0;break;
case 2:m=1;break;
case 3:m=24;break;
case 4:m=168;break;
case 5:m=672;break;
case 6:m=8064;break;
cout<<"\nHow many?";
cin>>x;
duration_in_hours=x*m;
}
void interface_customer(void)
{
//constructors here
}