C++ Namespaces
Let''s say I have multiple classes each in their own source and header, and I want them all in the same namespace, how would I do that?
-Solstice
deninet.com
aeris.deninet.com
"...I was given three choices, the earth, the stars, or..."
namespaces can be closed and opend again in multiple files like this:
// 1.h
namespace Foo {
// stuff
}
// 1.cpp
namespace Foo {
// stuff
}
// 2.h
namespace Foo {
// stuff
}
// 2.cpp
namespace Foo {
// stuff
}
hope that helps
// 1.h
namespace Foo {
// stuff
}
// 1.cpp
namespace Foo {
// stuff
}
// 2.h
namespace Foo {
// stuff
}
// 2.cpp
namespace Foo {
// stuff
}
hope that helps
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement