diff --git a/main.cpp b/main.cpp index 596b79c..7b1b50d 100644 --- a/main.cpp +++ b/main.cpp @@ -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; + } + } } /* diff --git a/newParkManne.cpp b/newParkManne.cpp new file mode 100644 index 0000000..d1c3415 --- /dev/null +++ b/newParkManne.cpp @@ -0,0 +1,5 @@ +#include + +void say_hello(){ + std::cout << "Hello, from newParkManne!\n"; +} diff --git a/test.db3 b/test.db3 index e591386..b51c16a 100644 Binary files a/test.db3 and b/test.db3 differ