1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "Ticket.h" Ticket::Ticket() : Ticket(0, 0) {} Ticket::Ticket(unsigned row, unsigned seat) { this->row = row; this->seat = seat; } unsigned Ticket::get_row() const { return row; } unsigned Ticket::get_seat() const { return seat; }