The exit condition of my do while loop is while the char variable choice is not equal to q or to Q...however when i enter q it displays the default case in the switch and doesnt exit the loop...here's the 1st half of the loop...
Code:
{
cout << "Benevolent Order of Programmers Report\n"
<< "a. Display by name\t b. Display by title\n"
<< "c. Display by bopname\t d. Display by Preference\n"
<< "q. Quit\n";
cout << "Your choice? ";
cin >> choice;
cout << "\n";
switch(choice)
{
case 'A':
case 'a': cout << s_known[0].fullname << endl
<< s_known[1].fullname << endl
<< s_known[2].fullname << endl;
cout << "\n";
break;
case 'B':
case 'b': cout << s_known[0].title << endl
<< s_known[1].title << endl
<< s_known[2].title << endl;
cout << "\n";
break;