Give a flannel board presentation. 1. Set up area with board. 2. Check pieces. 3. Practice. 4. Place pieces in order of appearance. 5. Gather children. 6. Place pieces out….
provide your own terminate function, which takes care of this problem.
1. Use the Time class to provide an overloaded ‘−’. Here the time query is also to be recorded in a ﬁ le. Use C text ﬁ le to store the query. If a calling function provides expression Time1 − Time2, then operator –() function should throw an exception if Time2 is a later time than Time1. Before throwing the exception, though, the operator ‘−’ function should close the ﬁ le.
2. Using Time class, throw an exception when invalid time is input. Write set_terminate() to provide your own terminate function, which takes care of this problem.