Hey guys, been a while since ive posted on here.......had a break to take some exams, ANYWAY lets get straight to my problem
I'm making a small minesweeper game, and i want the player to be able to select the size of the minefield, but the constructor is turning out to be a bit of a problem. The best i could come up with it below, but ill need to define i and j as ints, but i'd rather not create another two variables, is there a better way? thanks
Code:int m_Height; int m_Width; Field(char field[int i][int j]); // constructor char m_MineField[][]; // minefield itselfCode:Field(char field[i][j]): m_MineField[m_Width][m_Height](field[i][j])