When we're make a board game, we need 2D array.
Following function make a 2D table with array.
array< array<MineItem>^>^% MakeTable(int row, int col)
{array<array<MineItem>^>^ item_array2D;
}
item_array2D = gcnew array< array<MineItem>^ >(row);
for (int i =0; i < row; ++i)
{item_array2D[i] = gcnew array<MineItem>(col);
}
return item_array2D;
Saturday, April 12, 2008
[C++/CLI]How to make 2D array dynamically.
작성자: scor7910 시간 12:38 PM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment