Technote/Data Structure C++ [C++] Null 포인터를 리턴하는 new 연산자 Pooh0216 2009. 9. 17. 22:40 반응형 #include using std::cin; using std::cout; using std::endl; int main(void) { int size; cout << " 할당하고자 하는 배열의 크기 : " ; cin >> size; int* arr=new int[size]; if(arr==NULL) { cout <<"메모리 할당 실패"< 반응형 저작자표시 (새창열림)