Problems on creating a sudoku verifier
Hi there.I'm quite new to C and these boards.
I have a question on sudoku(9x9):
You'll input 81 digits like, 123412314523452345.......79687689.And the program will verify if these sequence is a valid sudoku board.It will suppose to read
1 2 3 4 1 2 3 1 4
5 2 3 4 5 2 3 4 5
and so on...
My first problem is that integers can't hold this value this large.What should I do to store this value?
I was thinking,in order to verify if it's a sudoku board,the program needs to add numbers in a row,column or a 3x3 box,and if the sum is not equal to 45,then the program will say that it is not a valid board.Is this algorithm right?Like if and else statements.
And in using arrays,do you add like a[0] + a[8]? How do you add from box 0 to box 8?
I'm just confused about this.Any reply would be really appreciated.