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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -