I'm currently working on a project where users create objects (as many as they like). The names of these objects are then used in a command prompt to select and then display their information. I can currently make as many objects as I like but using their names as the menu headings is proving to be difficult.
Here is an example of what I am after. Think of this as output with the numbers down the side refering to a number selection.
1.create new object
2.quit to main menu
Please choose one:
so a user selects 1 and creates a new object with the name "score". After creation the user is sent back to the main menu looking like this after the object is created
1.score
2.create new object
3.quit to main menu
If the user was to select score this would then bring up the object data somethiing as follows:
Name: Score
Score: 24
Modifier: 2
I know how to retrive only the name of the object and display it fine but using it as a selection as I said before is proving to be difficult. If anyone has any insight on something like this in c++ please reply
I'm currently using vectors to store my objects. These objects are instances of certian classes. Just to be clear I can output any of the objects data items.
I only have about 6 months experiance coding in c++ but the only thing I can't quite understand just yet is pointers.
So anyway you might know of.
edit: its cool i managed to work it out so thanks for the help anyway.
Auchioane,
Pointers point to a specific location in your computer. It's like an address. Your street address on the internet, it sez where you live and all the specs, but u don't live in the internet, it only shows u what is there.
Pointers are something that u really can't explain, which is why alot of people don't understand them.