I have a class which in its constructor will create 60 instances of another class. It would be nice if i could simply loop through the creation of all of these classes, however i dont know how to dynamically create the names. Mayby an array of objects? is this possible in C++. Something similar to the below pseudo code:
array[60]
for each item in array:
new object
array::name = "a string"
array::value = an integer value
This may not be very clear, but does anyone see what i am trying to do here.
Any Help would be appreciated.
Micah A. Norman
array[60]
for each item in array:
new object
array::name = "a string"
array::value = an integer value
This may not be very clear, but does anyone see what i am trying to do here.
Any Help would be appreciated.
Micah A. Norman