I think there are two possible answers:
1) in the definition of the function
1 2 3 4 5 6
|
void compute (.., ..)
{
// Code surce
}
|
line 9: you have not initialized int number1 and number2, then the line 13 does not reach any value.
otherwise, from what you've posted, it may be that you have never defined the function
|
int add (int number1, int number2);
|
on the header file
Also I do not understand what it is:
1 2 3 4
|
answer = ...............
{
}
|
in your code, function "compute (,)", the "answer" variable assumes all values obtained by function calls placed in the code lines 13, 19, 25, 31, 37.
you wanted to use an if / else statement?
however, if I understood your problem, you have not defined any of the functions provided in the header file
int add (int number1, int number2);
int subtract (int number1, int number2);
int multiply (int number1, int number2);
int divide (int number1, int number2);
int remainder (int number1, int number2);
I suggest you read this:
http://www.cplusplus.com/doc/tutorial/functions/