commenting my code

This commit is contained in:
TinyAtoms
2019-06-20 08:08:02 -03:00
parent e2c23647a5
commit 7840f791bb
6 changed files with 51 additions and 6 deletions

View File

@ -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";