Search
 
SCRIPT & CODE EXAMPLE
 

CPP

why is using namespace std a bad practice

As the namespace std will attach a lot of functions for your program and 
might face collision with some of these unknown function name;
Example : One named his variable max but thats a function in namespace 
std which might throw you some unwanted results.
It can also collide with other imported libraries functions with the same
name.
Comment

PREVIOUS NEXT
Code Example
Cpp :: how to code string to int converter c++ 
Cpp :: c++ code for bubble sort 
Cpp :: is power of 2 
Cpp :: initialize vector of vector c++ 
Cpp :: std vector c++ 
Cpp :: iterate over vector in c++ 
Cpp :: what is thread in c++ 
Cpp :: c++ string to int 
Cpp :: cout c++ 
Cpp :: cpp create lambda with recursion 
Cpp :: c++ create thread 
Cpp :: memmove 
Cpp :: methods available for a stl vector 
Cpp :: what is - in c++ 
Cpp :: how to find min of two numbers in c++ 
Cpp :: how to split string into words c++ 
Cpp :: c elif 
Cpp :: how many months have 31 days 
Cpp :: unordered_map contains key 
Cpp :: c function as paramter 
Cpp :: print hello world in c++ 
Cpp :: SUMOFPROD2 codechef solution 
Cpp :: c++ get whole line 
Cpp :: Subarray with given sum in c++ 
Cpp :: string number to integer number C++ 
Cpp :: sort strings by length and by alphabet 
Cpp :: cyclic array rotation in cpp 
Cpp :: google test assert stdout 
Cpp :: c++ multiply char 
Cpp :: C++ Arrays and Loops 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =