Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,493 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,070 people online right now. Registration is fast and FREE... Join Now!




n queens

 
Reply to this topicStart new topic

n queens, n>=9 program terminates

aclark17
post 2 Jul, 2008 - 01:05 AM
Post #1


New D.I.C Head

*
Joined: 18 Jun, 2008
Posts: 10

I cant figure out why this program is terminating and where exactly .. I have defined class to find all solutions to the n queens problem recursivley using the backtracking algorithim.
For n>n, specifciy n=9...it appears as if the program exits on its own.
see attachment.


This post has been edited by aclark17: 2 Jul, 2008 - 01:41 PM


Attached File(s)
Attached File  code.txt ( 1.66k ) Number of downloads: 13
User is offlineProfile CardPM

Go to the top of the page

captainhampton
post 2 Jul, 2008 - 04:51 AM
Post #2


Jawsome++;

Group Icon
Joined: 17 Oct, 2007
Posts: 518



Thanked 2 times

Dream Kudos: 825
My Contributions


It seems that some of the function implementation from your code is missing, i.e. RemoveQueen, SetQueen, etc. It is hard to tell just based on this why it is reacting as such. Also please put your code between the "[code]" brackets.

This post has been edited by captainhampton: 2 Jul, 2008 - 04:51 AM
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/22/08 04:43PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month