This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: create an object with variable CLASS


Oh, I forgot that i say i need to variable name of objects.same classes.
Therefor i need to variable name of objects & variable name of classes.
On Mon, 2009-10-26 at 23:42 +0330, Mohsen Pahlevanzadeh wrote:
> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]