c++ - Nested arrays or nested 2D array? -



c++ - Nested arrays or nested 2D array? -

i have created few headers each holds array , nested:

pixelarray[17] within screenarray[10] within monitorarray[dynamic pointer]

this because wanted test went along (not competent programmer long shot) after realised have merged pixelarray[17] , screenarray[10] single 2d array:

pixelarray[10][17] within monitorarray[dynamic pointer]

my question whether more efficient utilize single 2d array or not?

managing 2d array requires more competance managing 1d array, 2d array more elegant have packaging in improve form, since have info grouping kept together

c++ arrays performance

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -