We used the two-dimensional array example from
the previous lecture]. When
the array indices are out of bounds, we want to throw an exception
instead of exiting the program.
In this example, the OutOfBounds class
is an empty class but can be used to throw
exceptions of that type:
twodim10.h,
twodim10.cpp and
tdtest10.cpp.