Or you could remove the quotes from your numbers
case 1:
You are inputting integers and testing for chars.
here is the code i am using right now:
cout << "Enter another number ";
cin >> L3;
switch (L3)
{
case '0':
cout << "You entered ZERO" << endl;
break;
case '1':
cout << "You entered ONE" << endl;
break;
case '2':
cout << "You entered TWO" << endl;
break;
case '3':
cout << "You entered THREE" << endl;
break;
case '4':
cout << "You entered FOUR" << endl;
break;
case '5':
cout << "You entered FIVE" << endl;
break;
case '6':
cout << "You entered SIX" << endl;
break;
case '7':
cout << "You entered SEVEN" << endl;
break;
case '8':
cout << "You entered EIGHT" << endl;
break;
case '9':
cout << "You entered NINE" << endl;
break;
default:
cout << "Out of Range" << endl;
however when i run it, it just goes to default. how can i fix this. btw L3 is a 'long' box.