Ask your own question, for FREE!
computer science
sleepyjess:

@nuts

7 months ago
nuts:

{ do { menu(); switch(menuSelection) { case '1': { optionOne(length, feetToMeters); break; } case '2': { optionTwo(length, metersToFeet); break; } case '3': { optionThree(length, width, area); break; } case '4': { optionFour(length, width, height, volume); break; } case '5': { cout << "Thank you for using this program. Goodbye." << endl; break; } } }while(menuSelection != 5); }

7 months ago
nuts:

get rid of single quotes around your case statements because you're cinning them as ints and not as chars.

7 months ago
nuts:

so like case 1, case 2, etc

7 months ago
sleepyjess:

aha! that worked :)

7 months ago
Can't find your answer? Make a FREE account and ask your own question, OR you can help others and earn volunteer hours!
Latest Questions
rootbeer003: ASTRONOMY
1 hour ago 2 Replies 0 Medals
yg06130: What Came first, the egg or the chicken?
3 hours ago 3 Replies 2 Medals
kaylak: help calculus
5 hours ago 3 Replies 0 Medals
Hanna: History help?!
8 hours ago 7 Replies 1 Medal
johnnn: https://prnt.sc/moq2ll
9 hours ago 4 Replies 1 Medal
johnnn: https://prnt.sc/mopypi
9 hours ago 6 Replies 1 Medal