UralTerpsichore
Weaksauce
- Joined
- Apr 28, 2002
- Messages
- 71
I'm reorganizing some of my more commonly used functions into their own namespace, and I have a question about how to organize the files. I want to add in the function headings into utility.h, and then the implementation into utility.cpp, all under the SPUtility namespace.
In the utility.h file, should I write it out as
and then in the utility.cpp file
or should I do
Thanks for the help.
In the utility.h file, should I write it out as
Code:
namespace SPUtility{
float foo();
int bar();
}
and then in the utility.cpp file
Code:
float SPUtility::foo(){...}
Code:
namespace SPUtility{
float foo()
{
...
}
...
}
Thanks for the help.