Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2004

Tip: Looking for answers? Try searching our database.

Managed C++ and Jagged Arrays

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PaulW - 04 May 2004 09:21 GMT
Does anyone know the forthcoming Whidbey release of the C++ compiler support Jagged (or Ragged if you prefer) Arrays
If so how?
Yan-Hong Huang[MSFT] - 05 May 2004 03:31 GMT
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.
Ronald Laeremans [MSFT] - 06 May 2004 00:55 GMT
Hi Paul,

Yes, it is:
array<array<int>^>^ MyArray = gcnew array<array<int>^> (10);
> Does anyone know the forthcoming Whidbey release of the C++ compiler
> support Jagged (or Ragged if you prefer) Arrays?
> If so how?
PaulW - 06 May 2004 08:51 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.