| Re: Need help with my C++ code [message #445269 is a reply to message #445206] | 
			Fri, 25 March 2011 01:54    | 
		 
		
			
				
				
				  | 
					
						  
						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.
		
		
 
  
		
 |  
	| 
		
	 | 
 
 
 |