Question: private: private: int value; Node next; Node head; Node tai1; public: public: Node( int V, Node n NULL; friend class List; List(); bool IsEmpty); void
private: private: int value; Node next; Node head; Node tai1; public: public: Node( int V, Node" n NULL; friend class List; List(); bool IsEmpty); void AddToHead( int v) II not inplemented void AddToTail( int v /1 not impl void Append( const List& L): // not implemented 1: the methods AddTo?ead( Sand AddToTail() add a value at the beginning and at the end of the list, respectively and the method Append() takes an instance of List, I, as an argument and attaches I to the end of the list. Write of AddToHead(). AddToTai1() and Append () as defined outside the class definition. If you need to use extra function(s) in AddToHead(), AddToTail() or Append(), add their definition(s) to the class definition and fully implement them as well
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
