I cant find whats wrong with this problem...

#include <iostream>
using namespace std;
int main ()

{
char ch;
do {
cout << "\nEnter a character, q to quit:";
cin >> get( ch );
cout << "\n";

switch ( ch )
{
case 'a':
cout << "Now is " ;
case 'b':
cout << "the time ";
case 'c':
cout << "for all good men ";
case 'd':
cout << "The summer ";
case 'e':
cout << "soldier.";
}
} while ( ch != ‘q’ );
return 0;
}
You forgot to add break after each cout in switch loop :D
Topic archived. No new replies allowed.