Ad Code

Using the keyword "using" in C++ code

Is it a good practice to use the keyword "using" in C++ code? I have seen this very often: using std::string; using std::cin; usin std::cout; Why do we use it when we can simply include the header file (e.g. #include)? Please explain in detail.


The clause "using" is code requirement based practice it has nothing to do with the good practice. For better understanding I recommend you to go through following two links:
Reactions

Post a Comment

0 Comments