View Single Post
  #4 (permalink)  
Old Oct 27th, 2007, 18:48
tox0tes tox0tes is offline
Reputable Member
Join Date: Jan 2004
Location: California
Age: 19
Posts: 232
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via AIM to tox0tes
Re: Logic Problem involving loops and arrays

i just realized something: I was mistakenly continuing if puzzle[x][y] != '0', when it should actually be if puzzle[x][y] == '0'..... since an input of '0' means that that is an empty square that the program should consider. If it isn't '0', the the program should stop at the current puzzle[x][y] and return -1 since it is already occupied by a number 1-9.
Reply With Quote