|
@ -514,7 +514,7 @@ void inputFunction(int grid[SIZE][SIZE]) { |
|
|
int row_d, col_d; |
|
|
int row_d, col_d; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (true){ |
|
|
|
|
|
|
|
|
while (true){ |
|
|
char rowd_str[10]; |
|
|
char rowd_str[10]; |
|
|
char cold_str[10]; |
|
|
char cold_str[10]; |
|
|
scanf("%s %s", rowd_str, cold_str); |
|
|
scanf("%s %s", rowd_str, cold_str); |
|
@ -534,7 +534,7 @@ void inputFunction(int grid[SIZE][SIZE]) { |
|
|
default: |
|
|
default: |
|
|
printf("Invalid input. Please enter 1 or 2.\n"); |
|
|
printf("Invalid input. Please enter 1 or 2.\n"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
printGrid(grid); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|