Is my code right so far??
Here is what my project is http://www.cs.iupui.edu/~cs230/w_proj4.html
Is the code I have so far correct? this part of the code gets the coordinates from the user. What do I need to change and etc.? Any help is greatly appreciated. Ignore the parts that I haven't got to yet or offer help in those areas too. Thank you
#include <stdio.h>
#define SIZER 10
#define SIZEC 15
int initconfig(int [][], int, int);
int generate ();
int occ();
int printgrid();
#include <stdio.h>
#define SIZER 10
#define SIZEC 15
int initconfig(int [][], int, int);
int generate ();
int occ();
int printgrid();
int main()
{
int a[SIZER][SIZEC];
initconfig( a, SIZER, SIZEC );
}
int initconfig( int a[SIZER][SIZEC],int i, int j)
{ while( i!= -1)
{ for(i=0; i<=1; i++)
for(j=0; j<=1; j++)
scanf("%d", &a[i][j]);
}
}