Multi-dimensional Array Initialization [C++] (25)

8 Name: #!/usr/bin/anonymous : 2007-10-31 00:42 ID:M740Z140

Alternatively, just drop the multi-dimensional array and access the element at row,col as buffer[row+col*rows] where buffer is an array of size rows*cols. There are some minimal differences in performance between the two, but pick whichever one seems more comfortable.

This thread has been closed. You cannot post in this thread any longer.