commenting my code
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#include "headers/Customer.h"
|
||||
#include <iostream>
|
||||
|
||||
// moet aangepast worden om een verhicle_type toe te voegen
|
||||
Customer::Customer(int id_, string name_, string card_code_)
|
||||
: id { id_ }
|
||||
, name { name_ }
|
||||
@ -8,17 +9,22 @@ Customer::Customer(int id_, string name_, string card_code_)
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
creert een park_time object met start time= nu, en voegt t toe aan een vector.
|
||||
*/
|
||||
void Customer::clock_in( int s_id)
|
||||
{
|
||||
Park_time pt{id, s_id};
|
||||
park_instances.push_back(pt);
|
||||
}
|
||||
|
||||
// edit de laatste park_time obj in de vector zodat de end_time = now.
|
||||
void Customer::clock_out(int s_id){
|
||||
park_instances[park_instances.size()-1].clock_out(id, s_id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// monthly report generation. moet nog een manier vinden om af te bakenen.
|
||||
void Customer::gen_monthly(){
|
||||
std::cout << "NAME: " << name << " card code: " << card_code << "\n";
|
||||
std::cout << "-------------------------------------------------\n";
|
||||
|
Reference in New Issue
Block a user