I have this code:
void drawInitialNim(int num1, int num2, int num3) { int board[2][50]; //make an array with 3 columns int i; // i, j, k are loop cou
Try this:
void drawInitialNim(int num1, int num2, int num3){ int board[3][50] = {0}; // This is a local variable. It is not possible to use it after returning from this function. int i, j, k; for(i=0; i