I've tried two different things, but I'm not entirely sure what is happening. Looking for an explanation and input on how to do this in the best possible way, thanks! I don't want to use a vector.
Graph.h
public:
void setNodeList(int num);
private:
Node *nodeList[];
Graph.cpp
void Graph::setNodeList(int num)
{
nodeList[num]; // Would this work?
*nodeList = new Node[num]; // Or this? Not really sure.
}