1: //GetTwoInts.cpp
3: #include <iostream>
4: using namespace std;
6: //This function needs reference parameters because it is
7: //returning values to the caller.
8: void GetTwoIntValuesFromUser
9: (
10: int& first, //out
11: int& second //out
12: )
13: {
14: cout << "Enter two integer values: ";
15: cin >> first >> second;
16: }