Computer Science Canada What's Wrong???????? |
Author: | A.J [ Sun Mar 09, 2008 11:37 pm ] | ||
Post subject: | What's Wrong???????? | ||
This is the code I have of Q5 CCC. It just doesn't run (nothing happens!). WHAT IS WRONG?????????????????????????? ![]() |
Author: | Saad [ Sun Mar 09, 2008 11:48 pm ] |
Post subject: | RE:What\'s Wrong???????? |
Your specifying an array of 30 elements, which gives you a range from 0-29, however your trying to access the 31'st element which is which is at index 30, and as a result your trying to access unassigned memory |
Author: | A.J [ Mon Mar 10, 2008 11:41 am ] |
Post subject: | Re: What's Wrong???????? |
thx saad. |
Author: | A.J [ Mon Mar 10, 2008 8:19 pm ] | ||
Post subject: | Re: What's Wrong???????? | ||
what's wrong with this
It is a part of my code. It says "fsa.h:79: error: expected primary-expression before ']' token" What does that mean? |
Author: | Saad [ Mon Mar 10, 2008 8:29 pm ] |
Post subject: | RE:What\'s Wrong???????? |
Is this the whole definition of the PuzzleState class? if so that class is in-complete. Else please post the whole PuzzleState class. |
Author: | A.J [ Mon Mar 10, 2008 10:28 pm ] | ||
Post subject: | Re: What's Wrong???????? | ||
I'll post the full class (it's kinda big!?!?!)
|
Author: | md [ Mon Mar 10, 2008 11:15 pm ] |
Post subject: | RE:What\'s Wrong???????? |
So... your copying code from http://code.google.com/p/a-star-algorithm-implementation/source/diff?r=2&format=side&path=/trunk/8puzzle.cpp and it doesn't work... and you want us to help? Sorry, methinks if your gonna do shady things like that then your on your own. |