|
I guess that namespaces and structs are way too different. Most of their differences are in the way you concieve your program and the reusability of the code. You create a namespace when you create your own library or anything like that if you want to prevent nameclashes. You create struct if you have to abstract an object in the real life( because c++ treats structs and unions the same as classes).
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
|