what's the difference in these 2?

class list
{
class node
{
// blah
};
// blah
};

**********************************

class node
{
// blah
};

class list
{
// blah
};

the first is a class inside a class and the second is two separate classes

Depending on the exact content, the node class might have to be-friend the list class in the second case, while in the first one it does not.

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.