Is it just me or is there no return values in the code at all? main(), number1(), and number2() are all int type and yet they return nothing.
Also...
Code:
char letter;
char letter2;
int num1, num2;
These are declared in main(), but used in number1() and number2(). You have to declare them as global variables to do that.
And if you want to use number1() and number2() under main() you have to use prototypes.
Code:
int number1();
int number2();
You are comparing an empty cariable letter to y.
You have to get an input for letter first. Like this:
Code:
char letter[2];
cin.getline(letter, 1);
//Then compare them with strcmp()
if (strcmp(letter, "y") == 0)
//...
If you try to run that you'll get something about main() having an int type with no return value.
If you get passed that, you will jsut be running main() in a contuinous loop. You have to call number1() and number2() from main.