다차배열1 The new and delete Operators with multi-dimensional arrays (다차배열) // ALLOCATE A TWO-DIMENSIONAL SPACE, INITIALIZE, AND DELETE IT. #include #include using std::cout; using std::endl; void display(long double **); void de_allocate(long double **); int m = 3; // THE NUMBER OF ROWS. int n = 5; // THE NUMBER OF COLUMNS. int main(void) { long double **data; try { // TEST FOR EXCEPTIONS. data = new long double*[m]; // STEP 1: SET UP THE ROWS. for (int j = 0; j < m; j.. 2011. 1. 18. 이전 1 다음