Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		- 
				
				@RazorSh4rk I'm not an experienced programmer just started recently .how does your code look when you don't use namespace std .if you don't mind could you show me a sample of your code when not using namespace at the top.
 - 
				
				In general you want to avoid `using namespace x`
This is because it includes a lot of things that might accidentally conflict with variables or functions that you write. It's easy to not realize that something is in std and get a conflict when you try to make a variable. That's the reason that namespaces exist, actually! 
Related Rants
- 
						
							
xjose97x20Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop. - 
						
							
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ... - 
						
							
sam966911
Hats off to this lady .... I would have just flipped the machine 

I feel irritated when a c++ tutorial doesn't use namespace std at the top of the file.
undefined
c++