hi guys...
i have a class called Astar and a Node class within it...i have a method readfile() outside the Astar class...I want to now declare a vector of Nodes within readfile() but I get an error: E2451: Undefined symbol Node...i write:
vector <Node *> VectorOfNodes
what's the problem?
Best Regards,
Farooq
Here is the structure of the code:
I am giving the strcutre below...I've removed most of the things so it's easier to understand. The error is in the line: vector <Node *> CityNode; in the method: readfile()
class Astar
{
public:
class Node
{
public:
int x;
int y;
}
}AstarSearch;
Then:
void readFile()
{
vector <Node *> CityNode;
.................
.................
}