Ok, this is a different program and I can't seem to get this program to work. It's the function that wont work.
Can anyone help me out here?Code:#include <iostream> using namespace std; int Add(int firstNUM, int secondNUM) { cout <<"Tn the function now!" <<endl; cout <<"The number " <<firstNUM << " and the number " <<secondNUM << " will now be added together" <<endl; cout <<firstNUM <<" + " <<secondNUM <<"is the equation." <<endl; return (firstNUM+secondNUM); } int main() { int firstNUM, secondNUM, sumNUM; cout <<"This is a function program, just checking to see how good I know functions." <<endl; cout <<"Enter a number" <<endl; cin >>firstNUM; cout <<"Enter another number" <<endl; cin >>secondNUM; sumNUM = Add(firstNUM,secondNUM); cout <<Add(); system("pause"); return 0; }



LinkBack URL
About LinkBacks


