_CrtisValidHeapPointer(block) 런타임 에러
#include int main() { // 10x10 동적배열 생성 int** arr = new int* [10]; for (int alloc = 0; alloc < 10; alloc++) arr[alloc] = new int[10]; // 배열을 전부 0으로 초기화 for (int index_d = 0; index_d < 10; index_d++) for (int index_w = 0; index_w < 10; index_w++) arr[index_d][index_w] = 0; int a[10] = { 1,1,1,1,1,1,1,1,1,1 }; arr[0] = a; // 배열 출력 for (int index_d = 0; index_d < 10; index_d++) { for (int index_w = ..
Programming Languages/C++ & Algorithm
2020. 6. 4. 13:43