• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

2D arrays in managed C++?

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

mccoyn

Senior Member
Joined
Nov 17, 2003
Location
Michigan, USA
I want to make a two dimensional array of managed (.NET) classes in C++. Anyone know how to do this?

I've tried the following, but they give me errors.

Drawing::point pts[32][32];
Drawing::point pts[][];
Drawing::point* pts[];

As an alternative, is there something like the STL vector in .NET? Then, I could do vector<vector<Drawing::point>>.
 
Back