Click here to Skip to main content
15,868,419 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I wish to convert this following arrays into C++/CLI ...Does anybody can help me?
Thanks
Object[,] ArrWordList = gcnew Object[,] { { 0, "" }, { 1, "One" }, { 2, "Two" }, { 3, "Three" }, { 4, "Four" }, { 5, "Five" }, { 10, "Ten" }, { 20, "Twenty" }, { 30, "Thirty" }, { 40, "Forty" }, { 50, "Fifty" } };


Thanks Again
Posted
Comments
[no name] 2-May-14 22:59pm    
Okay.... you want to "convert" this C++/CLI multidimensional array into C++/CLI arrays? What exactly is it that you think you need help with?
Sergey Alexandrovich Kryukov 2-May-14 23:54pm    
Hardly, because we have no idea what do you want to do with such arrays and what is the problem.
Just one note: this is a bad type because its element type is System.Object, that is, the elements are untyped. Use more special types, possibly with the use of OOP polymorphism.
—SA

1 solution

This looks like a dictionary or map in c++ : http://www.cprogramming.com/tutorial/stl/stlmap.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900