This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
create an object with variable CLASS
- From: Mohsen Pahlevanzadeh <mohsen at pahlevanzadeh dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 26 Oct 2009 23:42:07 +0330
- Subject: create an object with variable CLASS
- Reply-to: mohsen at pahlevanzadeh dot org
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