function return..

im not sure what to return for this function? TourBus& TourBus::startTheTour() const { if (busSizeNumber != 4) { cout << "Cannot start the tour, the bus is not fully boarded!" << endl; } else { cout << "Starting the tour...." << endl; cout << "Passenger List:" << endl; cout << "|Row | Passenger Name | Num |" << endl; cout << "+----+------------------------------------------+-----+" << endl; ticket->display(); cout << "+----+------------------------------------------+-----+" << endl; } return .......; } }
3 Replies
sesame.seed2
sesame.seed2OP3y ago
nvm i got it thanks guys!
split
split3y ago
Try returning *this
sesame.seed2
sesame.seed2OP3y ago
thank you!
Want results from more Discord servers?
Add your server