Wordy title.. Lemme try to explain better.
I'm trying to design a database-like program to see how well I can use file input/output, menus, and other stuff I've been working on in one single program. I want to use a class/structure to represent the format for one entry in the database, and then have instances of that class for specific entries. However, I don't know how to make the program generate the name for the instance.
If you don't understand, what I mean is whenever you declare an instance of a class, like this for example:
and so on. My problem is that the program only knows how to create "entry_1", and thus only knows how to create as many as I tell it. Is there a way around this?Code:class randomClass { [insert class definitions here] } randomClass entry_1 entry_1.definition1 = 5
Thanks.