Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/55.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C-调试2D数组的特定子数组_C_Visual Studio_Debugging_Multidimensional Array_Sub Array - Fatal编程技术网

C-调试2D数组的特定子数组

C-调试2D数组的特定子数组,c,visual-studio,debugging,multidimensional-array,sub-array,C,Visual Studio,Debugging,Multidimensional Array,Sub Array,我正在VS2013中编写一个C程序,我想从完整的整数2D矩阵中调试一个特定的子数组。例如,使用调试器监视窗口,我可以像 Mat // this shows the full NxM Mat matrix values Mat[i][j] // this shows value of cell (i, j) Mat[i] // this shows the values of full i'th row Mat[i], j // this shows first j va

我正在VS2013中编写一个C程序,我想从完整的整数2D矩阵中调试一个特定的子数组。例如,使用调试器监视窗口,我可以像

Mat        // this shows the full NxM Mat matrix values
Mat[i][j]  // this shows value of cell (i, j)
Mat[i]     // this shows the values of full i'th row
Mat[i], j  // this shows first j values from i'th row
但我想打印Mat子部分的快照,它由小2D网格中的(i1,j1)到(i2,j2)组成。可能吗?我之所以需要它,是因为有时调试较小的子数组似乎是一项乏味的工作,特别是当主数组太大时,我对整个数组右下角的某个子数组感兴趣


如果没有标准方法,有什么解决方法吗?

你不能用一个命令做你想做的事情,但也许你可以根据他提到的:

Mat + 100, 10
这将显示从
Mat[100]
开始的10个元素。您不希望这样,但是如果您可以在
j1
处玩游戏并获取元素,那么您可能可以将它们组合起来获得子阵列


PS:如前所述,也尝试一下内存窗口。

谢谢。哪里可以找到内存窗口?欢迎@SazzadHissainKhan,我现在没有VS studio,所以我只是在谷歌上搜索并找到了。希望有帮助,干杯!