Declare an Object Via Text File
I need a way to simply declare an object based off what a text file says. For example, a text file could have the following contents:
After the program read in those as strings, I would want it to make objects of a structure using those names. Say for instance, house1 was read and loaded into a string. I would want to be able to make an object called "house1" of a structure called Buildings. The catch is that the program can't know how many objects need to be declared and what names to use before compilation. I have been trying to use a container like vector or map; however, I don't really know how to apply that to my situation.
/* buildings.txt */