I understand that, in C++, we should never use:
using namespace std;
The two possible alternatives are:
1) adding using std::cout;
at the beginning of the file and just type cout
whenever required
2) type std::cout
every time we need to use cout
My understanding is that the second method is the best. However, is this always followed in professional environments? Is it practical to follow in highly fast paced environments? I am used to the first alternative. Is it an advantage to switch?
Note: I originally posted this in Code Review and I was told that this topic belonged here. Kindly let me know if not.