Hi CodeGuru ,
In here, i saw that a 2D vector can be created in the following way. It really works .
What if we want to create and initialize a 2D vector inside a function, what should be the syntax ??
Thanks in advance.
Code:# include <cliext/vector> using namespace cliext; using namespace System; ref class MyClass { public: MyClass() { vector2D = gcnew vector<vector<int>^>(13); for(int i=0;i<13;i++) vector2D[i] = gcnew vector<int>(13); } vector<vector<int>^> ^vector2D ; } ;




Reply With Quote
