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
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