T
Tarscher
hi all,
I have a scripting and c# background and want to know how I
I have a vector containing a selfmade object
I want to add elements to that vector
vector<MyClass> object;
object.push_back(/*what do I do here*/)
In c# I could do
object.push_back(new MyClass())
But how do I call the constructor in c++ and return the object to the
vector?
Regards,
Stijn
I have a scripting and c# background and want to know how I
I have a vector containing a selfmade object
I want to add elements to that vector
vector<MyClass> object;
object.push_back(/*what do I do here*/)
In c# I could do
object.push_back(new MyClass())
But how do I call the constructor in c++ and return the object to the
vector?
Regards,
Stijn