View Single Post
Old Dec 29th, 2006, 11:43 AM   #8
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 215
Rep Power: 3 pegasus001 is on a distinguished road
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.
pegasus001 is offline   Reply With Quote