I want to know if it's possible.
Basically, I want to give the user a choice of making a new object that's part of a class. The user enters the choice and it should call a function "CreateObject()" which makes a new object and stores it in the heap "Class *Object = new Class".
If anyone can lead me to some reference to explain this or explain it themselves it'd be greatly appreciated! I've been looking and I've found nothing so far.



LinkBack URL
About LinkBacks



. I'm still new with c++ and even more recently, classes. I know somewhat about using pointers and/or references for functions, but this one stumps me!