ok sorry about not using code tags :P not used to forums haha. 2nd my prof was going to start delete but toward the end of the semester he decided not to teach that part but im sure its not difficult to use or learn. then again im a slow learner. :P 3rd how come you would want it to be an unsigned int? is it because the dimensions or the data may be negative?
Code:
int **board;
int rows;
int columns;
cout << "Enter number of rows and columns: ";
cin >> rows >> columns;
board = int int* [rows];
for (int row = 0; row < rows; row++)
board[row] = new int[columns];
return 0;
for a 3d
Code:
int ***board;
int rows;
int columns;
int thirddim;
cout << "Enter number of rows and columns and some number for the 3rd dimeninsion: ";
cin >> rows >> columns >> thirddim;
board = int int* [rows];
for (int row = 0; row < rows; row++)
board[row] = new int[columns];
for (int column = 0; column < columns; column++)
board[colum] = new int[thirddim];
return 0;