#include int Add (int first, int second) { std::cout << "In Add(), received " << first << " and " << second << "\n"; return (first + second); } int Subtract (int first, int second) { std::cout << "In Subtract(), received " << first << " and " << second << "\n"; return (first - second); } int main() { using std::cout; using std::cin; cout << "I'm in main()!\n"; int a, b, c; cout << "Enter two numbers: "; cin >> a; cin >> b; cout << "\nCalling Add()\n"; c=Add(a,b); cout << "\nBack in main().\n"; cout << "c was set to " << c; cout << "\n\nCalling Subtract()\n"; c=Subtract(a,b); cout << "\nBack in main().\n"; cout << "c was set to " << c; cout << "\nExiting...\n\n"; system("PAUSE"); // prevent the console window from closing return 0; }