1 Attachment(s)
Please help me with my sudoku solver
I've just started programming and I've been trying to make a C program that solves sudoku puzzles. Basically the user enters all of the numbers in the grid and enters a zero for unsolved spaces, then the program will try numbers in the first box until it finds a number that doesn' break any rules and move onto the second box etc. When it finds a box where no numbers work it will backtrack and try a different number for the previous box and so on.
It only works if there are less than about 10 spaces left empty and if there are more empty spaces the program will stop working and windows shuts it down right away. Is this because my computer cannot handle the program or do I have ann error in my code? If someone could have a look at my code that'd be great. I'm running it on Eclipse indigo on windows 7.Attachment 11239