I've taken a c++ course and the teacher hates using of using namespace std;
My question is Dose is have an effect on the performance? I mean using namespace may slow the code??
Probably not, but the biggest hitter from usingnamespace std; is the gigantic increase in the possibility of name conflicts (which is kind of ironic because namespaces should help reduce name conflicts IMO). Just think of how many classes and functions you have to prefix with "std::" if you didn't use usingnamespace std.