C++ can I have a vector of struct in a struct -
i have struct node
. need have vector
of node
member of node
. error:
error c2065 undeclared identifier
possible solve in c++?
update although think question clear, because insist see code, add code too:
typedef struct node_struct{ string id; mwtypes mwtype; bool geometricdecomposition; node_struct() { mwtype = fork; geometricdecomposition = false; } ... vector<vector<node>> barrierworkers; } node;
Comments
Post a Comment