I am trying to have the user enter two numbers and then repeat their sum. Right now VS 2015 is not recognizing the parameters when I try to call the function in main()
I am trying to understand the breakdown in my conceptualization of basic functions and parameters. I'm getting there but I need to see where my thought process is breaking down.
#include <iostream>
using namespace std;
int addNumbers(int FirstNumber, int SecondNumber) {
cout << "enter first number: " << endl;
cin >> FirstNumber;
cout << "enter second number: " << endl;
cin >> SecondNumber;
int answer = FirstNumber + SecondNumber;
cout << answer;
return answer;
}
int main() {
cout << "Test\n";
cout << addNumbers(FirstNumber, SecondNumber);
return 0;
}