but it had only partially fixed my problem
I have a "Menetrend" ("timetable") class That class has these two variables: ```cpp Tarolo utasok; (passengers) Tarolo vonatok; (trains) ``` Trains class has: `Tarolo vagonok;` (carriages) Carriages has: `Tarolo ulesek;` (seats) Seats has: ```cpp int jaratSzam; // train number int vagonSzam; // carriage number int helySzam; // seat number string nev; // passenger name bool foglalt; // reserved status ``` I am trying to reserve a ticket for a passenger, for which, I loop through the given train's carriages, and inside that, I loop through the seats I want to reserve the first seat that is not reserved already