Similiar, except that there is no finally block. You might write:Is it just like java?
Code:try { int *pointer = functionThatUseNew(); } catch (const std::bad_alloc& e) { // ... }
Similiar, except that there is no finally block. You might write:Is it just like java?
Code:try { int *pointer = functionThatUseNew(); } catch (const std::bad_alloc& e) { // ... }
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)