使用数组或向量 [英] use array or vector
问题描述
我需要使用我可以在运行时维度的数组。有没有办法在VC ++ .NET中使用数组来做这个?或者我需要使用向量吗?
Daniel
Daniel写道:
我需要使用我可以在运行时维度的数组。有没有办法在VC ++ .NET中使用数组做到这一点,或者我需要使用向量代替吗?
Daniel:
如果这是关于标准C ++的问题,你应该在
$中询问它b $ b microsoft.public.vc.language。
答案应该是:使用std :: vector。
-
David Wilkinson
Visual C ++ MVP
David Wilkinson写道:
Daniel写道:
>我需要使用我可以在运行时维度的数组。是否有使用数组在VC ++ .NET中执行此操作的方法,或者我需要使用
向量吗?
Daniel:
如果这是关于标准C ++的问题,你应该在
$中询问它b $ b microsoft.public.vc.language。
答案应该是:使用std :: vector。
或者也许是CArray(好吧,OP并没有指定他使用的图书馆是
)。或者来自System :: Collections的东西。
问候。
OP代表什么?
Daniel
"FernandoGómez" < fe **************** @ gmail.com写信息
新闻:关于************** @ TK2MSFTNGP05.phx.gbl ...
David Wilkinson写道:
> Daniel写道:
>>我需要使用我可以在运行时维度的数组。是否有使用数组在VC ++ .NET中执行此操作的方法,或者我需要使用向量
吗?
Daniel:
如果这是关于标准C ++的问题,你应该在
microsoft.public.vc.language中询问。<答案应该是:使用std :: vector。
或者也许是CArray(嗯,OP并没有指定他正在使用的图书馆。
或来自System :: Collections的东西。
问候。
I need to use arrays that I can dimension during runtime. Is there a way to
do that in VC++ .NET using arrays, or would I need to use vectors instead?
Daniel
Daniel wrote:I need to use arrays that I can dimension during runtime. Is there a way to
do that in VC++ .NET using arrays, or would I need to use vectors instead?Daniel:
If this is a question about standard C++, you should have asked it in
microsoft.public.vc.language.
And the answer would have been: use std::vector.
--
David Wilkinson
Visual C++ MVP
David Wilkinson wrote:Daniel wrote:>I need to use arrays that I can dimension during runtime. Is there a
way to do that in VC++ .NET using arrays, or would I need to use
vectors instead?
Daniel:
If this is a question about standard C++, you should have asked it in
microsoft.public.vc.language.
And the answer would have been: use std::vector.
Or perhaps CArray (well, the OP didn''t specify the library he was
using). Or something from System::Collections.
Regards.
What does OP stand for?
Daniel
"Fernando Gómez" <fe****************@gmail.comwrote in message
news:On**************@TK2MSFTNGP05.phx.gbl...David Wilkinson wrote:>Daniel wrote:>>I need to use arrays that I can dimension during runtime. Is there a
way to do that in VC++ .NET using arrays, or would I need to use vectors
instead?
Daniel:
If this is a question about standard C++, you should have asked it in
microsoft.public.vc.language.
And the answer would have been: use std::vector.
Or perhaps CArray (well, the OP didn''t specify the library he was using).
Or something from System::Collections.
Regards.
这篇关于使用数组或向量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!