创建双维数组 [英] Creating a double dimension array
问题描述
我想创建一个维数组(元素应该按行和列方式存储)。
我在每个元素的那一行中都有以下详细信息
Row-1-> [ID,X,Y,Z,标志],[ID,X,Y,Z,标志],[ID,X,Y,Z,标志] ...... [ID,X,Y,Z ,Flag]
第2行> [ID,X,Y,Z,标志],[ID,X,Y,Z,标志],[ID,X,Y,Z,标志] ...... [ID,X,Y,Z ,国旗]
第3行> [ID,X,Y,Z,标志],[ID,X,Y,Z,标志],[ID,X,Y,Z,标志] ...... [ID,X,Y,Z ,国旗]
................................... ............... ........
Row4-> [ID,X,Y,Z,标志],[ID,X,Y,Z,标志],[ID,X,Y,Z,标志] ...... [ID,X,Y,Z ,标志]
我必须按顺序存储元素并按顺序检索它们。可以帮我提供示例代码
谢谢
PSB
Hi,
I would like to create a dimensional array ( elements should be stored in a row wise and column wise).
I have the following details in that row of each elements
Row-1-> [ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag].......[ID,X,Y,Z,Flag]
Row-2-> [ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag].......[ID,X,Y,Z,Flag]
Row-3-> [ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag].......[ID,X,Y,Z,Flag]
.................................................. ........
Row4-> [ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag].......[ID,X,Y,Z,Flag]
I have to store the elements in the order and retrieve them in order.Can anbody help me with sample code
Thanks
PSB
推荐答案
我想创建一个维数组(元素应该按行和列方式存储)。
我在每个元素的行中都有以下详细信息
Row-1-> [ID,X,Y,Z,标志],[ID,X,Y,Z,标志],[ID,X,Y,Z,标志] ...... [ID,X,Y,Z ,Flag]
第2行> [ID,X,Y,Z,标志],[ID,X,Y,Z,标志],[ID,X,Y,Z,标志] ...... [ID,X,Y,Z ,国旗]
第3行> [ID,X,Y,Z,标志],[ID,X,Y,Z,标志],[ID,X,Y,Z,标志] ...... [ID,X,Y,Z ,国旗]
................................... ............... ........
Row4-> [ID,X,Y,Z,标志],[ID,X,Y,Z,标志],[ID,X,Y,Z,标志] ...... [ID,X,Y,Z ,标志]
我必须按顺序存储元素并按顺序检索它们。可以帮我提供示例代码
谢谢
PSB
Hi,
I would like to create a dimensional array ( elements should be stored in a row wise and column wise).
I have the following details in that row of each elements
Row-1-> [ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag].......[ID,X,Y,Z,Flag]
Row-2-> [ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag].......[ID,X,Y,Z,Flag]
Row-3-> [ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag].......[ID,X,Y,Z,Flag]
.................................................. ........
Row4-> [ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag],[ID,X,Y,Z,Flag].......[ID,X,Y,Z,Flag]
I have to store the elements in the order and retrieve them in order.Can anbody help me with sample code
Thanks
PSB
我在尝试时收到以下错误
I am getting the following error when I am trying
我在尝试时收到以下错误
I am getting the following error when I am trying
这篇关于创建双维数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!