I have been reading about contructors but is a "b constructor" the same as a " general constructor"?? My professor advised me that I am missing a b constructor in my functions .cpp file. Any enlightenment.....
I have been reading about contructors but is a "b constructor" the same as a " general constructor"?? My professor advised me that I am missing a b constructor in my functions .cpp file. Any enlightenment.....
sure he didn't say "de-constructor?"
Haha, Yeah that sounds alike don't you think?
Nope, he said bconstructor?? =) I thought I was well on my way until he said that. I ran into an error of r not being a declared identifier for my function and his answer was it's because you have no bconstructor in your function file?
I really think he ment constructor looking at your error.
Ok I will give a constructor a try- thanks!!!
if he sticks to the b-constructor after u fix it, tell him i have some software to sell him
In case i lack some serious information i searched for a 'b
constructor', No results.
Originally posted by Travis Dane
In case i lack some serious information i searched for a 'b
constructor', No results.
i did too before i posted.
He is still asking for a b contructor =) And I double checked "b as in boy " he said "yes" - I will let him know that you have some software for him =) I just added a contructor and I am good- I do have an issue though , with PrettyPrintHelper being an overloaded function. If you don't mind I am loosing it b/c I have been looking at this for hrs...what is overloaded ...possibly the root ...should that be r??? My professor is telling me that needs to be PrettyPrintHelper(root, level) ...seems to me like it should be PrettyPrintHelper(r, level)
Code:void AVLBST::PrettyPrint(int level){ PrettyPrintHelper(root,level); } void AVLBST::PrettyPrintHelper(AVLNode* r, int level) { const int TABSIZE = 10; int i; if(r != NULL) { PrettyPrint(r->right, level+1); for (i=0;i<=level*TABSIZE; i++) { cout << " "; }; cout << r->datum<< endl; PrettyPrint(r->left, level+1); }; }
i don't have time to look that over right this second, but could u please ask him to explain a b-constructor? Thats interesting to me.
Going to run this by my programming teacher also, ought to be interesting what she has to say.