Fili 0 Light Poster

I want to have a class LIST -- a dinamic list of rational numbers (defined previously in my RATIONAL class). I want another class STACK to inherit LIST's root and end pointers for my list.(STACK also is dinamical) Please help because it says that STACK cannot access the root and end pointers.

PS:ROOT and END are of the type NOD* where
struct NOD
{
rational data;
NOD* next;
};
:evil: :cry: :?:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.