If you display a list and allow the user to choose one city using a integer input. I'm not sure if you can use a string in a Switch-statement... C++11 might allow you to, but nothing older.
The list would look something like this:
using namespace std;
char List = "States: "
"\n\t1 - Virginia "
"\n\t2 - Texas ";
cout << List << endl;
cin >> Input;
case 1: //insert your own code here
case 2: //and here
default: //and here
I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem ...