I have the folowing structure defined
typedef struct NodeMulti{
int key;
vector<NodeMulti*> child;
};
in a function let's say I have:
NodeMulti* newNode = (NodeMulti*)malloc(sizeof(NodeMulti));
NodeMulti* anotherNode = (NodeMulti*)malloc(sizeof(NodeMulti));
newNode->child.push_back(anotherNode);
it does not work, any suggestions on how to fix it? if i try changing the key value, it works; for ex: 'newNode->key =...` works fine thanks!