create an object with variable CLASS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all,
We know that we can create an object with following code:
/////////////////////////////////////////////////
class_name *object_name = new() class_name;
///////////////////////////////////////////////
So, i have a class pool,I wanna create Object with a variable name that
variable is my class.Same:
var *obj = new() var;
var is a variable that contains a my class's name.
How can i implement it?

Yours,
Mohsen


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux