#include <vector>
#include "Node.h" // EDIT: added
Node node1(true,11);
Node node2(true,04);
std::vector<Node> room1;
room1.push_back(node1);
I just want to add node1 to the vector of nodes named room1.To me it looks exactly how the tutorials instruct, however I am getting an error "room1 does not name a type."
Edit: Header to node has been included. All Node does is a take in (bool,int) and stores it. (The program is several hundred lines long just trying to keep the content relevant.)