why using the using namespace std; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why using the using namespace std;

17th Sep 2016, 2:34 PM
mohammed mustafa
mohammed mustafa - avatar
2 Answers
+ 2
To not have to put std:: in front of every element from the standard libraries, for example std::cout.
17th Sep 2016, 2:47 PM
Zen
Zen - avatar
0
cause not have to type too much codes,it's means u aren't have to type codes for "cout" or "cin" etc.this is the c++ libraries that has pre-typed codes.
17th Sep 2016, 6:58 PM
Mohammad Hosseini
Mohammad Hosseini - avatar