Create a C++ CarList class that represents the list of baggage cars. Below is my
ID: 3533601 • Letter: C
Question
Create a C++ CarList class that represents the list of baggage cars.
Below is my h file of the CarList:
class CarList <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
{
private:
struct NodeType
{
BaggageCar element;
NodeType* next;
NodeType (BaggageCar elem, NodeType* link) : element(elem), next(link)
{}
}
NodeType* first;
public:
CarList();
~CarList();
bool printAirline(const string &airline, ostream &out) const;
void insertInOrder(const BaggageCar &object);
bool remove(const BaggageCar & object);
NodeType* search(const BaggageCar& object);
void printList(ostream &out) const;
Explanation / Answer
what do you want us do? what is the question?