Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started