J
JellyBum
Hey there, having a bit of a problem trying to acheive something..
Ive got 2 arrays, ArrayA, ArrayB both are of type char with [5][7]
dimensions.
Ive got code in a function, which does
if(ArrayA[x][y] == 'A') { // do something }
but i also have
if(ArrayB[x][y] == 'A') { // do something }
so for each array im doubling it.
Im wondering, if i could do, if(SOMETHING[x][y] ==
and then reference the arrayname in SOMETHING
Any ideas please?
Thanks
Ive got 2 arrays, ArrayA, ArrayB both are of type char with [5][7]
dimensions.
Ive got code in a function, which does
if(ArrayA[x][y] == 'A') { // do something }
but i also have
if(ArrayB[x][y] == 'A') { // do something }
so for each array im doubling it.
Im wondering, if i could do, if(SOMETHING[x][y] ==
and then reference the arrayname in SOMETHING
Any ideas please?
Thanks