c++ homework help with two dimensional array

November 17, 2010 at 09:57:44
Specs: Windows 7
dsfsfgsdrfgd

See More: c++ homework help with two dimensional array

Report •

#1
November 17, 2010 at 12:53:16
dsfsfgsdrfgd

it doesn't look like a 2D array to me if that helps at all; all kidding aside, if you have a specific problem (initializing, accessing elements, etc), post a sample of what you're trying.



Report •

#2
November 17, 2010 at 18:56:31
I think it kind of 6D array maybe you need more than one programing language to solve it or write it, but try you never know what will happen hhhhh

Report •

#3
February 21, 2011 at 04:47:37
two dimensional arrays, I did a lot of research on those a while back. This is just the basics of what I remember, also this is a 2D int.

int **twod = NULL;
int dx = 5;
int dy = 6;

for(dx = 0; dx < 5; dx++)
for(dy = 0; dy < 5; dy++)
twod[dx][dy] = malloc(sizeof(int*));

then access like this.

twod[1][3] = 133;


Report •
Related Solutions


Ask Question