// main function **********************************************************
int main ()
{
// All variable declarations go here at the top of the main function
cout << "Insert two numbers to be calculated: " << endl;
cin >> numone, numtwo;
result = returnResult(numone,numtwo);
cout << "The result it: " << result << "." <<endl;
// End of program statements
cout << "Please press enter once or twice to continue...";
cin.ignore().get(); // hold console window open
return 0; // successful termination
}
// end main() *************************************************************
// Function Implementations ***********************************************
double returnResult(double numone, double numtwo);
The first line in your function double returnResult(numone, numtwo) doesn't seem valid - I assume it should not even be there as an attempt at a recursive call as your returnResult function will then loop infinitely recursively.
The second line of your function is illegal as you are trying to treat the function name returnResult as a variable.
// main function **********************************************************
int main ()
{
// All variable declarations go here at the top of the main function
cout << "Insert two numbers to be calculated: " << endl;
cin >> numone >> numtwo;
cout << endl << "The result is: " << result << "." <<endl;
result = returnResult(numone,numtwo);
// End of program statements
cout << "Please press enter once or twice to continue...";
cin.ignore().get(); // hold console window open
return EXIT_SUCCESS; // successful termination
}
// end main()