如何在Watch窗口中更改数组的顺序? [英] How can I change the order of an array in Watch window?

查看:93
本文介绍了如何在Watch窗口中更改数组的顺序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。

我正在使用Visual Studio 2015和英特尔Fortran 2017。

I'm using visual studio 2015 with Intel Fortran 2017.

我正在调试我的程序,我有一个32 * 3阵列。

I'm debugging my program, and I have a 32*3 array.

我想按照这个顺序检查数据

I want to check data like in this order

来自 --->

xs(1,1) || xs(1,1)

xs(2,1) || xs(1,2)

xs(3,1) || xs(1, 3)

xs(4,1) || xs(2,1)

xs(5,1) || xs(2,2)

xs(6,1) || xs(2,3)

From ---> to
xs(1,1) || xs(1,1)
xs(2,1) || xs(1,2)
xs(3,1) || xs(1,3)
xs(4,1) || xs(2,1)
xs(5,1) || xs(2,2)
xs(6,1) || xs(2,3)

但顺序是相反的,因此很难为我检查数据。

But the order is reversed so it's very hard to check the data for me.

所以是可以在Watch窗口中更改数组的顺序吗?

So is it possible to change the order of an array in Watch window?

推荐答案

你好GOCHON,

Hi GOCHON,

您可以考虑创建像这个MSDN文档的自定义视图:

You could think about creating custom view like this MSDN document:

https://msdn.microsoft.com/en-us/library/ jj620914.aspx?f = 255& MSPPError = -2147217396

在标题"ArrayItems扩展"下,您会找到有用的信息。

Under title "ArrayItems expansion", you would find useful information.

方向 指定数组是行主要顺序还是列主顺序。
排名 指定数组的排名。

最诚挚的问候,

杰克


这篇关于如何在Watch窗口中更改数组的顺序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆