I'm currently working on a linked list program where I use nodes inside of a header file for another class. I'm using this syntax in the header file where the node is defined as a struct under the private section:
yet when I compile, it gives me errors that I don't have a constructor for the "StoreList::Node" class...how exactly do I get around this.... OR.....what is the syntax I need to define a simple one that does nothing (I dont need it to)...Code:head->next=new Node;
I'vs Tried doing the
andCode:StoreList::Node() {}
to no availCode:StoreList::Node::Node() {}
Appreciate any help,
Arm



LinkBack URL
About LinkBacks


