Hi,
How can I initialize a multidimensional array in C++. Below doesn't work. Is there any way other than looping?
I am using MS 2005 C++ express edition.Code://Header file
class Arena {
private:
int map[2][2];
};
//CPP file
Arena::Arena() {
map= {
{1,2},
{3,4}
};
}