still no clue
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
|
||||
#include "Park_time.h"
|
||||
#include "data.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
using std::vector;
|
||||
@ -22,7 +23,6 @@ park_time object. Voegt het toe aan een vector.
|
||||
|
||||
class Customer {
|
||||
public:
|
||||
|
||||
int id;
|
||||
string name;
|
||||
string password;
|
||||
@ -38,17 +38,18 @@ class Customer {
|
||||
void delete_db();
|
||||
|
||||
void gen_monthly(); // remove, make it a function in data
|
||||
Verhicle_type verhicle;
|
||||
|
||||
private:
|
||||
Verhicle_type verhicle;
|
||||
vector<Park_time> park_instances;
|
||||
void save_db();
|
||||
int auto_increment_db();
|
||||
};
|
||||
|
||||
static vector<Customer> park_customers; // save the customers that are parked in here
|
||||
static vector<Customer>
|
||||
park_customers; // save the customers that are parked in here
|
||||
// parking_spot uses pointers, so it's better to save the parked customers here
|
||||
// where we know they'll be destroyed at the end of this scope, instead of too early
|
||||
// and end up with dangling pointers
|
||||
// where we know they'll be destroyed at the end of this scope, instead of too
|
||||
// early and end up with dangling pointers
|
||||
|
||||
#endif // CUSTOMER_H
|
Reference in New Issue
Block a user