Mar 6, 2017 at 10:19pm UTC
Hello all,
I want to write a function which solves Sudoku and for testing I declared a two dimensional array as follows
int sudoku[9][9] = {
{2,' ',' ',8,' ',4,' ',' ',6 } ,
{' ', ' ', 6 , ' ', -1, -1, 5 , -1, -1} ,
{ -1, 7 , 4 , -1, -1, -1, 9 , 2 , -1} ,
{ 3 , -1, -1, -1, 4 , -1, -1, -1, 7 } ,
{ -1, -1, -1, 3 , -1, 5 , -1, -1, -1} ,
{ 4 , -1, -1, -1, 6 , -1, -1, -1, 9 } ,
{ -1, 1 , 9 , -1, -1, -1, 7 , 4 , -1} ,
{ -1, -1, 8 , -1, -1, -1, 2 , -1, -1} ,
{ 5 , -1, -1, 6 , -1, 8 , -1, -1, 1 } ,
};
but I get the error message
'empty character constant' in every line of code.
I would really appreciate help.
Thank you very much!!!!