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?
2 Respuestas
+ 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
0
Thanks!