I' been working on MFC that takes in a Post Fix Expression and returns the In Fix Expression with full parentheses. I managed to turn the CString into char* and fil lthe Tree with it.
Now I need 2 make a Function called Retrieve that fills the same array with the In Fix Expression, here's and Example:
void Retrieve (char *fix, bintree *r, int pos)
{
if(!r->RetrieveLeft->IsEmpty()) // This Line is NOT working.
{
fix[pos]=r->RetrieveInfo();
Retrieve(fix,r->RetrieveLeft,pos++);
} // I still haven't thought about adding the Parentheses any Ideas?
}
So, thats it, there is still the calculating function, but I'm still not going to work on that now, need 2 finish this Function first.
So any help would be really appreciated.


Sign In
Create Account


Back to top









