// This program demonstrates the IntRange3 class. #include #include "IntRange3.h" using namespace std; int main() { IntRange3 range(5, 10); int userValue; cout << "Enter a value in the range 5 - 10: "; try { userValue = range.getInput(); cout << "You entered " << userValue << endl; } catch (IntRange3::OutOfRange ex) { cout << "That value " << ex.value << " is out of range.\n"; } cout << "End of the program.\n"; return 0; }