CS202 5- ‹#›
Throwing an Exception
nThere are four rules that apply to the function that we supply:
ä1) it must not take any arguments,
ä2) it must not return data,
ä3) it must not return; it can only terminate by calling exit or abort, and
ä4) it is not allowed to throw an exception.
ä5) the header file <exception> is needed to use set_terminate.