"vivekian" <vi********@gmail.com> wrote in message
news:11********************@f14g2000cwb.googlegrou ps.com...
Have to create a linked list of objects of the same type based on user
input. The number of objects in the list is dynamic depending on the
number input from the user. What would be the best way to name these
objects ?
What do you mean by "name these objects"? Given the following:
struct AClass
{
std::string myName;
AClass( const char* theName ) : myName( theName ) {}
};
AClass specificClass;
What is the "name" you're referring to? Is it the class name "AClass", the
member "myName", or the variable name "specificClass"?
Given an answer to that, what does it have to do with the user specifying
the number of objects, as your question stated? Where does dynamically
naming the objects come into play?
-Howard