Hello
I never want to have any global functions, instead I always try to put them somewhere..
Im unsure if I should put global functions inside namespace, struct or class (as static functions).
For instance:
Lets say I have int my_random() function, that returns random number.
Should I put it inside a namespace or struct/class?
I noticed most of OO programers would do:
So what is the best approach?Code:namespace various { int my_random() { } }