First page Back Continue Last page Graphics
fig13_05.cpp
(2 of 2)
fig13_05.cpp
output (1 of 1)
29
30 // handle bad_alloc exception
31 catch ( bad_alloc &memoryAllocationException ) {
32 cout << "Exception occurred: "
33 << memoryAllocationException.what() << endl;
34
35 } // end catch
36
37 return 0;
38
39 } // end main