Archived

This topic is now archived and is closed to further replies.

edwinnie

c++ stuffz

Recommended Posts

siaspete    208
Namespaces are used to stop you writing functions that have the same name as other ones.

Templates are so you can use the same code for multiple types of data, etc.

They''re both just tools, use them when you need to.


Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions

Share this post


Link to post
Share on other sites
siaspete    208
Hehe true. It depends how you look at it I guess.

Is it a way to stop the compiler finding 2 functions with the same name and getting confused, or a way for you to write two functions with the same name?


Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions

Share this post


Link to post
Share on other sites