2D array

Joined
May 21, 2009
Messages
1
Reaction score
0
hello,

need some pretty basic help with a 2D array. im trying to set up a 2 dimensional array which should cover all the coordinates X={0...78} and Y={0...78}, set up as if you were looking at the top right part of an X,Y axis. but im afraid im completely stuck.

im trying to set it through a function:

#define EAST 78
#define NORTH 78

...

double set_array2D(double A[][NORTH], double neast){
int i=0;
int j=78;
for(i=0; i<neast; i++){
for(j=78; j>=0; j-=1){
A[j]= ? ;
}
}
}

any help would be greatly appreciated
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top