Question: ARRAY LIST I need help with this . fill in the blanks Thanks //******************************************************************** #ifndef ARRLIST_H #define ARRLIST_H //******************************************************************** template class ArrList { private: TYPE*
ARRAY LIST
I need help with this . fill in the blanks
Thanks
//********************************************************************
#ifndef ARRLIST_H
#define ARRLIST_H
//********************************************************************
template
class ArrList
{
private:
TYPE* list;//points to dynamically allocated array
int capacity;//capacity of array
int numValues;//number of items currently in the array
bool _resize();
public:
ArrList(int c = 5);
~ArrList();
void display() const;
______ insertFront ( ___________________________________ ) ;
______ insertBack ( ___________________________________ ) ;
______ insertAtIndex ( ___________________________________) ;
______ retrieveFront ___________________________________) const;
______ retrieveBack ( ___________________________________) const;
______ retrieveAtIndex ( ___________________________________) const;
______ retrieve ( ___________________________________) const;
// find first occurrence of item
______ removeFront ( ___________________________________) ;
______ removeBack ( ___________________________________ ) ;
______ removeAtIndex ( ___________________________________ ) ;
______ remove ( ___________________________________) ;
______ updateFront ( ___________________________________) ;
______ updateBack ( ___________________________________) ;
______ updateAtIndex ( ___________________________________) ;
______ update ( ___________________________________ ) ;
______ getSmallest ( ___________________________________) const;
______ getCapacity () const;
______ getNumValues () const;
______isEmpty ()const;
______ clearList ();// removes all items from list
};
#endif
//********************************************************************
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
