It doesnt compile. Just want some help while I am trying to figure that out.Code:MNode::MNode(CMenuItem* item,unsigned int index, MNode* prev, MNode* next ){ _next = next; _prev = prev; _item = item; _index = index; } CMenu& CMenu::add(const char* Text, bool selected){ CMenuItem C(selected,_format, Text, 1,1,20); MNode Node(&C,_cnt,0,0); // Crash because of this. return *this; }
Thanks