Should I include'using namespace std' before main fiction in all program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Should I include'using namespace std' before main fiction in all program

Do I need to insert the line in quotes everyone I compile

26th Jun 2019, 5:40 PM
Vigneshwar A
Vigneshwar A - avatar
1 Answer
+ 1
No, you can also use for example std::cout instead of "using namespace" and only cout. Actually that's also the preferable way to do so.
26th Jun 2019, 5:47 PM
Matthias
Matthias - avatar