//set<*Node> neighbours;
set<Node*> neighbours;
vijayan121
Posting Virtuoso
1,606 posts since Dec 2006
Reputation Points: 1,159
Solved Threads: 287
It looks like you want a set of Node pointers. However, the way you wrote your declaration you are trying to use the '*' improperly. You are trying to dereference a Node object instead of declare a pointer. The '*' must be placed after the data type to declare a pointer to the data type. As in:
//set<*Node> neighbours;
set<Node*> neighbours;Sorry I knocked you vijay, but you didn't explain...
Fbody
Posting Maven
2,930 posts since Oct 2009
Reputation Points: 833
Solved Threads: 393