I can't get my menu driven app to accept my choice, so I can't even debug the rest of the program because it doesn't run, can someone find where I went wrong?
while (true)
{
//validate user input
while (choice < 1 || choice > 6)
{
cout << "Please enter a number between 1 and 5!";
system("cls");
displayMenu();
cout.flush();
getChoice(choice);
}
//call function getInput(plug in variable length and width here) //this is for reading length and width
switch (choice)
{
case 1:
getRadius(radius);
cout << "Radius is: " << radius << '\n';
break;
case 2:
cout << "Area is: " << calcArea(radius) << '\n';
break;
case 3:
cout << "Circumference is: " << calcCircumference(radius) << '\n';
break;
case 4:
cout << "Diameter is: " << calcDiameter(radius) << '\n';
break;