okay I am making an array of maps but i get the following error at compile time:
graph.h:18: error: parse error before `[' token
anyone got ideas?Code:#include <map>
using namespace std;
class graph
{
public:
struct edge
{
int cost;
char *left;
char *right;
};
graph(char * fileName);
private:
map<char *, int> nodeMap;
nodeMap nodeList [1000];//the problem is here ***********************
bool isCycle(char * One, char * Two);
bool downList();
int knownCounter;
};
