如何在 Netbeans 中观看动态分配的二维 int 数组?
这是我的 C 代码:
ppPositions = (int**) calloc(nElements, sizeof(int*));
for(i = 0; i < nElements; i++) {
ppPositions[i] = (int*) calloc(MAX_NUM, sizeof(int));
}
}
这是我在变量窗口中使用的手表:
*((ppPositions)+0)@4
此代码适用于字符串数组(字符矩阵),但不适用于整数矩阵:S