This is a solution written in C++ for the N-Queens problem I wrote a year ago. It is an iterative solution, rather than a recursive one.