【发布时间】:2018-03-15 12:13:21
【问题描述】:
我正在 VS 2013 中编写一个 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 子部分的快照,该子部分由 (i1, j1) 到 (i2, j2) 组成,采用小型 2D 网格。可能吗?我需要它是因为有时调试较小的子数组似乎是一项乏味的工作,尤其是当主数组太大并且我对整个数组右下角的某个子部分感兴趣时。
如果没有标准方法,任何解决方法?
【问题讨论】:
标签: c visual-studio debugging multidimensional-array sub-array