Code:
int main()
{
//step 2: int xcoord;
int ycoord;
step 1: int chessBoard[8][8] = {{-1,-1,-1,-1,-1,-1,-1,-1},
{-1,-1,-1,-1,-1,-1,-1,-1},
{-1,-1,-1,-1,-1,-1,-1,-1},
{-1,-1,-1,-1,-1,-1,-1,-1},
{-1,-1,-1,-1,-1,-1,-1,-1},
{-1,-1,-1,-1,-1,-1,-1,-1},
{-1,-1,-1,-1,-1,-1,-1,-1},
{-1,-1,-1,-1,-1,-1,-1,-1}};
step 2: printf("Enter the x coord for the peice to be set\n");
scanf("%d", &xcoord);
printf("Enter the y coord for the peice to be set\n");
scanf("%d", &ycoord);
/* since your didn't plan your program out ahead of time you need to go back and add the variables as your create them.*/
step 3: chessBoard[xcoord-1][ycoord-1] = 1;
}
have fun.