Either that, |
|
Either that, |
|
(\_ _/)
(='.'=)
(")_(")
Ooooh. Damn university taught me java, is there ever a more useless language? Is there a good C++ book like 'C in a nutshell'? |
|
Last edited by ninja9578; 05-09-2008 at 01:05 AM.
Bjarne Stroustrup (the guy who developed C++) has written a few books |
|
(\_ _/)
(='.'=)
(")_(")
If you've gone the dynamic way, remember to free objects after you've finished with them |
|
Last edited by Ynot; 05-09-2008 at 01:19 AM.
(\_ _/)
(='.'=)
(")_(")
Oh right, I have to write a destructor. Damn java's garbage collector made me loose everything that I knew about C++. |
|
Last edited by ninja9578; 05-09-2008 at 03:09 AM.
Remember to make those destructors virtual as well, if you've got an inheritance hierarchy going on anywhere. |
|
Truths are material, like vegetables and weeds; as to whether vegetable or weed, the decision lies in me.
--Max Stirner
Oh crap, I didn't think that through. I have a parent class with some stuff in it, which needs to be purged on calling the destructor, but what happens if I call the destructor for the child class? Will it run both? |
|
Bookmarks