Purchase and manage a plane ticket - C++ software