From: Per W. <pw...@ia...> - 2008-05-10 02:56:10
|
5 points for unreadable code - also incomplete which also goes for yuor help request. What do you want help with? You haven't mentioned what your problem is... /pwm On Fri, 9 May 2008, Kenneth Chung wrote: > > are there any errors in this code as it is not working. > > if (c> dCol && ((sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ') || > (sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ')) && > sq[r][c - 1] <= sq[r + 1][c] && sq[r][c - 1] <= sq[r][c + 1] && sq[r][c - 1] <= sq[r - 1][c]) > spmw1(r, c - 1); > else > if (c < dCol && ((sq[r][c + 1] != '#' && sq[r][c + 1] != ' ') || (sq[r - 1][c] != '#' && sq[r - 1][c] != ' ') || > (sq[r][c - 1] != '#' && sq[r][c - 1] != ' ') || (sq[r + 1][c] != '#' && sq[r + 1][c] != ' ')) && > sq[r][c + 1] <= sq[r - 1][c] && sq[r][c + 1] <= sq[r][c - 1] && sq[r][c + 1] <= sq[r + 1][c]) > spmw1(r, c + 1); > else > if |