B
Brian
Ok, so i know the title is a little confusing but let me put it this
way
lets say i have an array of strings, and with each string inside the
array, i want to make a new class
problems:
1) i dont know how many words there are so i can't just make classes
up ahead of time
2) i want to be able to just reference them by their names
i know in cshell codeing youcan do $x to access the value of the
variable so you could do something like
new class $x
so if x's value was "DOG" you'd have a new class called DOG
is there any way to do this in c++, not just a class, i want to be
able to make new arrays also so i guess i just need to be able to
access the value of the variable and be able to make something new
with THAT name
hope you guys/gals can understand...
thanks in advanced!
way
lets say i have an array of strings, and with each string inside the
array, i want to make a new class
problems:
1) i dont know how many words there are so i can't just make classes
up ahead of time
2) i want to be able to just reference them by their names
i know in cshell codeing youcan do $x to access the value of the
variable so you could do something like
new class $x
so if x's value was "DOG" you'd have a new class called DOG
is there any way to do this in c++, not just a class, i want to be
able to make new arrays also so i guess i just need to be able to
access the value of the variable and be able to make something new
with THAT name
hope you guys/gals can understand...
thanks in advanced!