Hello
I've a function witch have a managed array as input and output parameters.
output array has the same size as input array
I'de like to declare an array witch has the same size like the input array :
array<int,2>^ fct(array<int,2>^ T)
{
array<int,2>^ t=gcnew array<int,2>( ?,?);
...
return t;
}
someone has an idea?
Thanks
Tomas Restrepo \(MVP\) - 07 Jun 2005 02:09 GMT
> I've a function witch have a managed array as input and output parameters.
> output array has the same size as input array
[quoted text clipped - 8 lines]
>
> someone has an idea?
try:
array<int,2>^ t=gcnew array<int,2>(T->GetLength(0), T->GetLength(1));

Signature
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/