1) Since Visual C++ does not have forms, is there a way to create a list. Meaning, when a user is prompted for the name of a place, they can either choose from a list of names, or put in their own. And when they add the new name, it will be added to the list. I am thinking that we can manipulate an array somehow for this.
2) Is there a way to create a case statement during the program. Meaning, if I have an array of the names, and I give the user an option to choose one, or add another, is there a way to create a case that "changes" during the program.
Ex.
Taking the list of names, and saying that for each name, create a case statement. So if the names are in an array, telling the program to create a case clause for each array entry. This will make it so that if the name is not in the list, it will prompt for the new name. After the new name is entered, it will can be added to the array, and also to the case for the next add. To me, just a generic way of creating a list.
Is this possible?
Otherwise, is there another way to create a list in visual C++ so that the user will have a choice of names to choose from, which could also be add to?
Well a vector is a container that is designed to grow dynamically i.e when your program runs. I am not sure about whether visual c++ even has a std::vector type though. hth