After a quick look at your horrifically-spaced code I spotted a couple of things (I'm sure there's more!),
What exactly are you trying to do with this?
|
Node** Curr = new Node*[sizeof(places[0]) * sizeof(places[0])];
|
sizeof(places[0]) is just sizeof(Place), the number of bytes a Place struct occupies. Why would you want to create a number of Node pointers equal to the square of the number of bytes in a Place struct?
What is RefPlaceCount for? Why not just use placecount? If you need placecount's original value for the loop limits then make a copy of the value, not a reference to the original int, which will always give placecount's current value.
You should go through your program and space it properly. I suggest you first globally-replace all tabs with four spaces since you seem to have mixed tabs and spaces, which is never good.
Then you should post the entire program and some input so we can run it.
Describe what it's supposed to do and what it is doing wrong.