0

Good practice std::cout or cout including namespace std?

Hi, I'm new to programming and prefer using cout and including using namespace std; but I have read online that the best practice is to use the std::cout, why is this better?

12th Dec 2019, 7:01 AM
Kevin Nisbet
Kevin Nisbet - avatar
2 Respostas
+ 2
Well I recommend you to go for std::cout because if in future you played with multiple namespace then it will be difficult to recognize which function is of which namespace therefore std:: is a good practice For more info https://youtu.be/4NYC-VU-svE
12th Dec 2019, 10:30 AM
Dev Pratap
Dev Pratap - avatar
0
Thanks!
12th Dec 2019, 10:31 AM
Kevin Nisbet
Kevin Nisbet - avatar