i have two classes. class Ticket and class Game. A game consist of an array of digits and a Ticket consist of a number of games. Two games mustn't be equal eg 1 2 3 and 4 5 6.
In my Ticket class i've created a pointer called ticketGame and this pointer points to an array of Games. so that means that
*(ticketGame + i ) = a game
Is it possible to access a specific index in a specific *(ticketGame + i )???
Eg can i say ticketGame[1][2]???
and how should i overload my = operator to be able to do
Code:*(ticketGame + i ) = game1;




Reply With Quote