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.
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.
Good information indeed. Thanks for posting this here and please keep posting the useful information further and you can get more information on diamond problem here in the below link.
Diamond problem in Cpp with examples