对数组的偏移引用?

编程入门 行业动态 更新时间:2024-10-22 13:47:00
本文介绍了对数组的偏移引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想创建一个数组,指向不同阵列的中间 部分。 例如 原始数组> [0] [1] [2] [3] [4] [5] [6] [7] 第二个数组 - ----------- ^ [0] [1] [2] [3] [4] [5] 这是可能吗??我认为它可以在 c ++中完成,但我不知道如何在vb中完成它 如果可能的话。 感谢所有帮助

解决方案

你为什么要这样做? 你想要一个阵列数组还是什么? 也许告诉我们应用程序会有所帮助....至少补了一下 应用你想要完成的任务。 Shane " jamie" <一个******* @ discussions.microsoft>在留言中写道 news:6b **************************** @ phx.gbl ... 我希望创建一个指向不同数组的中间部分的数组。 例如原始数组> [0] [1] [2] [3] [4] [5] [6] [7] 第二阵列------------- ^ [0] [1] [2] [3] [4] [5] 这一切都可能吗?我认为它可以在 c ++中完成,但是如果有可能的话,我也不知道如何在vb中完成它。 感谢所有帮助

好的.... 我有一个数组需要被分割的数据。 数组中的数据包都是标准的,所以它们 在特定区域有字节。 我可以计算到它的偏移量piticular数据包, 然后偏移到一个特定字节或.... 有另一个数组指向数据包的开头。 我不知道这是不是很有意义。 (我对咖啡的力量有点低。)

---- - 原始消息----- 你为什么要这样做? 你想要一个阵列或什么?也许告诉我们应用程序会很有帮助......只需要就可以完成你想要完成的任务。 Shane jamie <一个******* @ discussions.microsoft>写在 messagenews:6b **************************** @ phx.gbl ...

我希望创建一个数组,指向不同数组的中间部分。 例如原始数组> [0] [1] [2] [3] [4] [5] [6] [7] 第二阵列------------- ^ [0] [1 ] [2] [3] [4] [5] 这一切都可能吗?我认为它可以在c ++中完成,但是如果有可能的话,我也不知道如何在vb中完成它。 感谢所有帮助

" jamie" <一个******* @ discussions.microsoft>在留言中写道 news:6b **************************** @ phx.gbl ... 我希望创建一个指向不同数组的中间部分的数组。 例如原始数组> [0] [1] [2] [3] [4] [5] [6] [7] 第二阵列------------- ^ [0] [1] [2] [3] [4] [5] 这一切都可能吗?我认为它可以在 c ++中完成,但是如果有可能的话,我也不知道如何在vb中完成它。 感谢所有帮助

您使用的是ArrayList吗? 最诚挚的问候, Andy

I wish to create an array that points to, say, the middle section of a different array. eg Original array >[0] [1] [2] [3] [4] [5] [6] [7] second array-------------^ [0] [1] [2] [3] [4] [5] Is this at all possible?? I think that it could be done in c++, but I dont have a clue as to how to do it in vb if it is even possible. thanks for all help

解决方案

Why would you want to do this??? Are you wanting an array of arrays or what? Maybe telling us the application would be helpful....at least a made up application of what you want to accomplish. Shane "jamie" <an*******@discussions.microsoft> wrote in message news:6b****************************@phx.gbl...

I wish to create an array that points to, say, the middle section of a different array. eg Original array >[0] [1] [2] [3] [4] [5] [6] [7] second array-------------^ [0] [1] [2] [3] [4] [5] Is this at all possible?? I think that it could be done in c++, but I dont have a clue as to how to do it in vb if it is even possible. thanks for all help

Okay.... I have an array full of data that needs to be parced. The packets inside the array are all standard, so they have bytes in piticular areas. Either I can calculate an offset to that piticular packet, then the offset to a piticular byte or.... have another array pointing to the beginning of the packet. I dont know if this makes sence. (Im a little low on caffeen power.)

-----Original Message-----Why would you want to do this???Are you wanting an array of arrays or what?Maybe telling us the application would be helpful....at least a made upapplication of what you want to accomplish.Shane"jamie" <an*******@discussions.microsoft> wrote in messagenews:6b****************************@phx.gbl...

I wish to create an array that points to, say, the middle section of a different array. eg Original array >[0] [1] [2] [3] [4] [5] [6] [7] second array-------------^ [0] [1] [2] [3] [4] [5] Is this at all possible?? I think that it could be done in c++, but I dont have a clue as to how to do it in vb if it is even possible. thanks for all help

.

"jamie" <an*******@discussions.microsoft> wrote in message news:6b****************************@phx.gbl...

I wish to create an array that points to, say, the middle section of a different array. eg Original array >[0] [1] [2] [3] [4] [5] [6] [7] second array-------------^ [0] [1] [2] [3] [4] [5] Is this at all possible?? I think that it could be done in c++, but I dont have a clue as to how to do it in vb if it is even possible. thanks for all help

Are you using an ArrayList? Best Regards, Andy

更多推荐

对数组的偏移引用?

本文发布于:2023-07-29 00:39:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1235611.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数组

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!