Correcting compile time errors is not a hard task. Follow error messages and try to find out the problem. I will show you some examples in your code to solve errors. Your code has many error which shows you need practice more in C++.
The declaration of showMenu
is void showMenu(int &)
but you are calling it by showMenu()
:
void showMenu(int &);
^^^^^
Remove it
Also, to call a function you shall not pass types:
area = double area (double length, double width);
^^^^^^ ^^^^^^ ^^^^^^
More, when implementing a function, you shall not put ;
after function signature:
double area (double radius); <--- remove semicolon
{
3
solved Class involving functions & if/else if statements [closed]