My code compiles properly and both requesting and withdrawing functions work properly. When I go to display the landing times/flight numbers, I get the error: std::_String_alloc<std::_String_base_types<char,std::allocator<char> > >::_Mysize(...) returned 0xCDCDCDE1.
No clue what error this is. I've been trying to figure it out but have had no success so far.
I got a crash at line 188 cout << "Flight Number: " << *nextFlight->flightNumber << endl; when *nextFlight->flightNumber == 0xcdcdcdcd {...} so filghtNumber is invalid
It happend after insering two flight and then choosing "List of landing times and the flight number"
It seems like every time I try to display the landing times and flight numbers, It'll always crash with the same error. Doesn't seem to matter what inputs I put in. The inputs I put in were:
1
5
1
1
9
2
3
and then it crashes. Tested with other numbers and it still gives the same error.