I've got this sorting program that uses variables from another class but I'm not sure why its not recognizing it. I'm getting an error length and list not declared in this scope.
#ifndef H_arrayListType
#define H_arrayListType
#include <iostream>
#include <cassert>
usingnamespace std;
template<class elemType>
class arrayListType
{
some functions;
protected:
elemType *list; //array to hold the list elements
int length; //variable to store the length of the list
int maxSize; //variable to store the maximum
//size of the list
};