C++ Function Parameter Declarations
#include <iostream> using namespace std; void findMax(int, int); // function declaration (prototype) int main()//from ww w .ja v a 2 s.c o m { int firstnum, secnum; cout << "\nEnter a number: "; cin >> firstnum; cout << "Great! Please enter a second number: "; cin >> secnum; findMax(firstnum, secnum); // function is called here return 0; }