This is not the entire program, just the part I currently need help with, and the functions I am calling in this part.
I am returning area from areaCircle(), but do not know how to print it in main. I know this program has lots of errors, so I would appreciate it if someone would help with the two cases that I have listed.
Not sure how to properly list multiple function calls in a switch statement, and how to print one's return from main.
switch (choice)
{
case'C': void getRadius(),double areaCircle(), void count(bool display = false);
cout << "Area is "<< area << endl;
case'c': void getRadius(), double areaCircle(), void count(bool display = false);
cout << "Area is " << area << endl;
break;case'c':
case'C': //Using fallthough
getRadius(radius); //Calling function instead of declaring it
area = areaCircle(radius); //Assigning result of callin funtion to area
std::cout << "Area is "<< area << endl;
}
//...
while (true == isNegative(radius));
Thank you guys so much! If I have further questions about this program is it better to start a new thread, or continue this one? I'm not sure how many people will check back if I update this one? Also, is there a way to up you guys' reputation or anything?