Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Call insert function statement (http://www.go4expert.com/forums/insert-function-statement-t6969/)

aquarius2236 22Oct2007 19:17

Call insert function statement
 
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
}


All times are GMT +5.5. The time now is 19:27.