Arrays are a pain in the butt in CLI C++. Everytime I need to create one I have to look it up again. Here is how you create one:
Byte of 256:
array<Byte^>^ byte = gcnew array<Byte^>(256);
String
array<String^>^ strarray = gcnew array<String^>(10);
Here is a jagged array
<B>array<array<int>^>^ arr = gcnew array<array<int>^> (5);</B>
Let me know if you need any help with arrays.
Void
Nice post. Arrays are a pain in managed C++. C# is so much easier to create them. What happened to the old way of arrays anyway? You know, String[200].....
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks