Exception thrown: read access violation. **dynamicArray** was 0x1118235. occurred
问题 #include "pch.h" #include <iostream> #include <string> using namespace std; int **dynamicArray ; int ROWS, COLUMNS; //--------------------------------- int input_matrix(int ROWS, int COLUMNS) { //--------------------------------------- //memory allocated for elements of rows. int **dynamicArray = new int *[ROWS]; //memory allocated for elements of each column. for (int i = 0; i < ROWS; i++) dynamicArray[i] = new int [COLUMNS]; //free the allocated memory for (int i = 0; i < ROWS; i++) delete[