Code:
template <class T>
class BasicMinMaxHeap {
public:
void insert(const T& elt);}
--------------------------------------
template <class T>
void BasicMinMaxHeap<T>::insert(const T& elt) {
if(lastindex == maxsize) grow();
cerr << "insert: " << elt << endl;
lastindex++;
A[lastindex] = elt;
bubbleUp(lastindex);
}
void main(){
// if i want to call the above insert function, what is the statement look like?? <--------- Question
}