Original Post
Hi all, MSVC 2005 SP1 MS Windows XP SP2 I'm trying to learn a bit about using multiple levels of namespaces and classes in C++. I tried creating a sample app which looks like the following: This compiles fine. However, when I try to split the appropriate classes into their own header files, I am having difficulty finding documentation on exactly how I should be doing this, syntactically speaking. I have header-guards in each header file, so this is not an issue. I'm just not sure how I should be defining, for example, C1/C2/C3/C4 in their own header files. Any help is appreciated. Cheers,
namespace N1
{
namespace N2
{
class C1
{
class C2
{
};
};
class C3
{
};
}
namespace N3
{
class C4
{
};
}
}