I am trying to figure out how to create a program for an unsorted list class. I need to use this header file and can't change it. I need help creating the RetrieveItem, DeleteItem, inGetNextItem, PrintList and InsertItem to add to my implementation file. I just can't seem to figure it out. Any help or suggestions are greatly appreciated.
Thanks,
Robert
Code:
#indef UNSORTEDTYPE_H
#define UNSORTEDTYPE_H
const int MAX_ITEMS=10;
class UnsortedType
{
public:
UnsortedType();
bool IsFull() const;
int LengthIs() const;
bool RetrieveItem (int item);
bool InsertItem (int item);
bool DeleteItem(int item);
void ResetList();
int GetNextItem();
void ResetList();
void PrintList();
private:
int length;
int info[MAX_ITEMS];
int currentPos;
};