while loop in admin and exit
This commit is contained in:
parent
3eb00a0da9
commit
0c06192f81
13
main.cpp
13
main.cpp
@ -47,8 +47,17 @@ int main() {
|
|||||||
// state of db:
|
// state of db:
|
||||||
// er zijn 10 parkspots, 5 met biketype en 5 met pickup type
|
// er zijn 10 parkspots, 5 met biketype en 5 met pickup type
|
||||||
// er is een customer met id 1(testcustomer) met password "password"
|
// er is een customer met id 1(testcustomer) met password "password"
|
||||||
|
while(true) {
|
||||||
interface(parking_spots);
|
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
5
newParkManne.cpp
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
void say_hello(){
|
||||||
|
std::cout << "Hello, from newParkManne!\n";
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user