Added constructors to construct from db info
This is in no way finished. CHECK TODOs!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This commit is contained in:
13
main.cpp
13
main.cpp
@ -17,7 +17,8 @@ record die zegt dat een customer voor x tijd geparkeert heeft bij spot x, enz.
|
||||
De client clockt in en uit bij een spot.
|
||||
*/
|
||||
|
||||
void Wait(int sec)
|
||||
void
|
||||
Wait(int sec)
|
||||
/*
|
||||
a wait function where 1 sec represents 1 hour irl.
|
||||
*/
|
||||
@ -25,14 +26,14 @@ a wait function where 1 sec represents 1 hour irl.
|
||||
std::this_thread::sleep_for(seconds{sec});
|
||||
}
|
||||
|
||||
|
||||
int main() {
|
||||
class Customer sagar{"Sagar Ramsaransing", Verhicle_type::bike};
|
||||
int
|
||||
main() {
|
||||
class Customer sagar {
|
||||
"Sagar Ramsaransing", Verhicle_type::bike
|
||||
};
|
||||
sagar.update_db();
|
||||
Park_spot p1;
|
||||
p1.clock(&sagar);
|
||||
Wait(2);
|
||||
// p1.clock(&sagar);
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user