Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Node
- {
- struct Node** adjacencies;
- bool* paths = new bool[4];
- bool visited;
- int x;
- int y;
- };
- //Here I initialize the map with all the nodes.
- Node_map::Node_map(int x_size, int y_size)
- {
- setHeight((y_size / 2));
- setWidth((x_size / 2));
- map = new Node[getWidth()*getHeight()];
- size = getWidth() * getHeight();
- }
- //Here I wanted to set the stage for the calculations by resetting all values to default.
- bool* processed = new bool[numNodes];//To quickly check whether each node has been processed or not.
- Node* testList = new Node[numNodes];
- int startIndex = 0;
- for (int i = 0; i < numNodes; i++) {
- processed[i] = false;
- testList[i] = NULL; //Here I get the error complaining about no matching operator.
- }
Advertisement
Add Comment
Please, Sign In to add comment