Possible Duplicate:
C++: instantiate class from name?
For example, if I have
string s = "myObject";
So how can I use that String s to make this one?
return new myObject();
I tried this one but it's quite silly and it's wrong
return new s();
Thank you