2_new3_nothrow #include using namespace std; int main() { int* p = new int; // 실패시 std::bad_alloc 예외 발생 int* p2 = new(nothrow) int; // 실패시 0리턴 if ( p2 == 0 ) cout 개발/C, C++ 2014.07.23