Clear my doubt please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Clear my doubt please

I am not clear with the line using namespace std

31st Dec 2016, 7:14 PM
Vanshaj Veer
Vanshaj Veer - avatar
5 Answers
+ 6
When you use "using namespace (INSERT NAMESPACE HERE);" all symbols(functions and stuff) in that namespace will become visible/available without adding the namespace prefix. For example, if you were to use cout w/o delcaring "using namespace std", you would need to use "std::cout" instead of "cout".
31st Dec 2016, 7:19 PM
Wen Qin
Wen Qin - avatar
+ 3
Basically its to make life easier w/o having to use "std:: ..." all the time when you are calling something from the std library. if you want more detailed information, google it.
31st Dec 2016, 7:23 PM
Wen Qin
Wen Qin - avatar
0
thanku... but sir still I am having doubt
31st Dec 2016, 7:21 PM
Vanshaj Veer
Vanshaj Veer - avatar
0
thanks..
31st Dec 2016, 7:24 PM
Vanshaj Veer
Vanshaj Veer - avatar
0
Do you have more doubts ? Lile others said , it is to makr coder's life easy
31st Dec 2016, 10:19 PM
Shiv Kumar
Shiv Kumar - avatar