I am trying to let the user declare new objects of a structure. The issue is that I don't know how to declare an object of a struct based off of their input. I tried to use dynamic memory, but that doesn't seem to be what I need.
Basically, I want the user to be able to create new objects by typing something like "new_object". Then the program would ask for a name, along with some parameters for the newly declared object.
If the names are unique you could use a map<object name, object> to store these user created objects.
Or an array and have the object itself save its name.