while loop in admin and exit

This commit is contained in:
Stefan Udit 2019-07-17 10:26:22 -03:00
parent 3eb00a0da9
commit 0c06192f81
3 changed files with 16 additions and 2 deletions

View File

@ -47,8 +47,17 @@ int main() {
// state of db:
// er zijn 10 parkspots, 5 met biketype en 5 met pickup type
// er is een customer met id 1(testcustomer) met password "password"
interface(parking_spots);
while(true) {
cin.clear();
interface(parking_spots);
cout<<"\nexit? Input 'y' or 'n'..";
char n;
cin >> n;
cin.clear();
if(n=='y'){
break;
}
}
}
/*

5
newParkManne.cpp Normal file
View File

@ -0,0 +1,5 @@
#include <iostream>
void say_hello(){
std::cout << "Hello, from newParkManne!\n";
}

BIN
test.db3

Binary file not shown.