N-queen problem solving code in C++

To know what is this N-Queen problem is go here. My code can be complied using any ANSI complaint C++ compiler. I successfully compiled it using g++ and MS Visual C++ 6.0. I point I would like to mention is that when I ran this program for N=10 then it occupied 600kB when compiled using Visual C++ 6.0 and it took around 2300kB! I have to tried to keep memory requirement under check. It has respectable processing speed.

Get the code from applegrew.pastebin.com. For some reason the previous post of this code got deleted from pastebin. If you encounter such problem again then post a comment here. I will repost the code.

2 Comments

  1. It seems the link to pastebin no longer works, so I will post the code here when I find the code. It must be on some of my CDs.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.