Re: sudoku solver !!help!!
There are a few things that I think you should fix:
1) I strongly suggest you use descriptive variable names, such as row, column, etc.
2) An array of size n is index from 0 to n - 1, not 1 to n. You're leaving out entire rows and columns in your calculations.
3) It's a bad idea to use goto statements; avoid them unless it's absolutely necessary. This only makes your code harder to read.
4) Please use functions. This code is a mess, and difficult to figure out. And please...use descriptive names for your functions.
The reason why no output is coming is because your program got stuck in an infinite loop somewhere.
Last edited by dargueta; 07-11-2008 at 03:51 PM.
|