Hi. I want to create a namespace that supports my whole library files and classes.
But i don't know how to create a namespace.
Can anyone tell me how to do that ?
There is a question here :
if i want to add classes and objects to a namespace from another library ?
for example :
I have a namespace called namespace1.
and i have a library called library.h
i have a function or class in library.h and i want to add it to the namespace1.
Is there any way to do it ?
namespace namespace1 {
//this is the first line of library.h
//this is more of library.h
//I have no clue what is here
//there could be a function here
//there could be a class here
}