Posted by hussein on July 22, 2000 at 11:56:23:
In Reply to: Pr#2 posted by Q on July 22, 2000 at 01:44:34:
: I know this is a dummy question, but I have a trouble with that, so please tell me how to store the list by using class??
i am assuming that you are still in the first part of the question.
firstly, use the class declaration that was done for one of the homeworks to replace the struct you currently have (so you should be using an array of objects instead of an array of structs). write appropriate definitions.
then, encapsulate the array and the functions that access it to add/delay/remove flights into a second class (if you didnt use functions, see my source code).