Hello all, long story short, the function below is not incrementing my array, please advise whats wrong with it
//---------------------------------------------------------------------
void UpdateParking()
{
cout << "Please enter a valid plate number -> ";
long your_plate;
cin >> your_plate;
for (int i = 0; i < size; i++)
{
if ( your_plate == Plates[i])
ParkingTickets[i] = ParkingTickets[i] + 1;
}
}
//---------------------------------------------------------------------