the_eight_queens_solver
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
the_eight_queens_solver [2012/02/21 13:18] – xjia | the_eight_queens_solver [2012/02/23 14:02] (current) – xjia | ||
---|---|---|---|
Line 2: | Line 2: | ||
/* The eight queens solver */ | /* The eight queens solver */ | ||
- | int main(string[] args) { | + | int main(string[ ] args) { |
int N; | int N; | ||
int[] row, col; | int[] row, col; | ||
Line 14: | Line 14: | ||
d[1] = new int[N+N-1]; | d[1] = new int[N+N-1]; | ||
| | ||
+ | // fillIntArray is a contributed function | ||
fillIntArray(row, | fillIntArray(row, | ||
fillIntArray(col, | fillIntArray(col, | ||
Line 35: | Line 36: | ||
} | } | ||
} | } | ||
- | | + | |
} | } | ||
- | | + | |
- | return 0; | + | |
} | } | ||
Line 56: | Line 56: | ||
} | } | ||
} | } | ||
- | return 0; | ||
} | } | ||
</ | </ | ||
Note that '' | Note that '' |
the_eight_queens_solver.1329830326.txt.gz · Last modified: 2012/02/21 13:18 by xjia