View Single Post
  #3 (permalink)  
Old 07-11-2008, 03:49 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 696
Last Blog:
Programs Under the Hoo...
Rep Power: 12
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default 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.
Reply With Quote