Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Other » Need help with my C++ code
Re: Need help with my C++ code [message #445269 is a reply to message #445206] Fri, 25 March 2011 01:54 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
The std namepsace has a lot of identifiers, and they are called generic things like string or iterator. If you use another library then there could be a chance that it has the same identifier. Even if the other library doesn't use the same identifier at the moment, it could do in the future, so there's a conflict in your global namespace.
Really you should just do std::cin instead of using the global namespace, it also adds clarity to code and makes it easier to read.

However, I get the impression from Silent Kane that he doesn't like the std namespace itself, rather than what I just posted.



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: need help with php
Next Topic: Is it possible to replace the CPU Fans on laptops?
Goto Forum:
  


Current Time: Sat May 11 23:21:51 MST 2024

Total time taken to generate the page: 0.01145 seconds