Im making a project and its about a parking area for cars with several floors, line and columns.
I created a class called Carro ([ENG] Car ) and i whant it to register the license plate, entrance and exit time
I tried to use linked list, but i cant make it work, theres any other solution?
Also need to make a log file, theres any option so i can use only a file to store and read the data?
Carro.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#pragma once
class Carro
{
public:
char matricula; //Licence Plate
int hora_entrada, minuto_entrada, hora_saida, minuto_saida; //Hour_Entrance,Minute_Entrance,Hour_Exit,Minute_Exit
int piso, linha, fila; //Floor,Line,Column
//
void CalculaPreco(int, int, int, int) const;//Preco // Calculates Price per Hour
void Entrada(); //Entrada do Carro // Save the entrance time and licence plate
void Saida(); //Saida do Carro // Check if licence plate is registed and save the exit time
//
};