Put the code you need help with here.
case 3:
cout << "Enter 1 to convert from decimal to hexadecimal\n" <<
"Enter 2 to convert from hexadecimal to decimal\n" << endl;
cin >> z;
switch (z)
{
case 1 :
cout << "Lower or upper case for hex print out?\n" <<
"enter 'true' for upper or 'false' for lower" << endl;
cin >> boolalpha >> t;
switch (t)
{
casetrue:
cout << "true" << endl;
break;
casefalse:
cout << "false" << endl;
break;
}
case 2 :
cout << " you picked 2" << endl;
break;
}
if i input true it sends me to true and case 2...any other input sends me to casefalse AND case 2
appreciate any tips