Managed C++ and Jagged Arrays

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know the forthcoming Whidbey release of the C++ compiler support Jagged (or Ragged if you prefer) Arrays
If so how?
 
Hello Paul,

According to the post:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&c2coff=1&threadm
=u%24pJ681EEHA.3096%40TK2MSFTNGP11.phx.gbl&rnum=1&prev=/groups%3Fq%3D%2522Ja
gged%2520array%2522%2520whidbey%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%
26c2coff%3D1%26sa%3DN%26tab%3Dwg

Ronald Laeremans from Visual C++ team answered that Jagged Arrays is
supported in VC++ in Whidbey.

You should be able to do aggregate initialization in Managed C++ in
Whidbey. The only thing not allowed in Managed C++ V1 Whidbey is declaring
a jagged array, but it's allowed in MC++ V2.

String* strArray[,] = { {S"one", S"two", S"three"}, {S"four", S"five",
S"six"} };

I can compile this using Whidbey compiler. However, since Whidbey has no
beta version yet. So it is possible to change.

Does that answer your question?

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Paul,

Yes, it is:
array<array<int>^>^ MyArray = gcnew array<array<int>^> (10);
 
Thanks very much for the reply.
It will eliminate a smallish C# module that I have to use at the moment
It could be smaller but I had to put more code into it for perf.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top