Problem with AVL TREE

0

I have a little problem.. i’m writing a overloaded save function for an avl tree which is suppose to take an object of a class and use the get methods of the class to write the data into an output file.. i succeeded in implementing the function, but it writes only the first record to the output file and ignore the rest.. below is my code..

void save(AVLNode<Class> *pRoot)
{
ofstream  otfl(“output.txt”);
otfl << pRoot -> data.getSignature ( )
<< “,” << pRoot -> data.getName ( )
<< “,” << pRoot -> data.getCrew ( ))
otfl <<endl;
otfl.close();
}

please Help needed!

Tags: asked May 10, 2012
Avatar Image
Tega
0

Your Answer

Please login to post questions.

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup

Email: