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) { // ... }
This is a discussion on Problem with Dynamically Increasing Array of Integers within the C++ Programming forums, part of the General Programming Boards category; Is it just like java? Similiar, except that there is no finally block. You might write: Code: try { int ...
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) { // ... }
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way