std::string tempGet;
std::cout << "Enter flight START point: ";
std::getline(in, tempGet);
flight.start_point = tempGet;
std::cout << "Enter flight FINAL point: ";
std::getline(in, tempGet);
flight.final_point = tempGet;
std::cout << "Enter flight airplane name: ";
std::getline(in, tempGet);
flight.airplane = tempGet;
Hi!
This is part of my code.
flight is my class have three data member.
here my program ignore first getline and terminal be like this:
Enter flight START point: Enter flight FINAL point:
what is the problem ???