Hello for my C++ programming class I am programming a Dictionary program that allows the user to enter in definitions and stores them between 2 classes. Dictionary which will contain all my entries and Entry which will contain the definition for every word that the user inputs.
Now when they add a Definition they are asked for the word they want to add a definition too and if the word does not exist it will create a new Entry Object to store the information.
My problem is I want to be able to use the user inputted word to name the object and can not find a way to do it.
Example;
Word to Add Definition: Car
Car is a new word create new Object of Class Entry Car.
New Word to add Definition: Monopoly
Monopoly is a new word create a new Object of Class Entry called Monopoly.