In all our c++ courses, all the teachers always put using namespace std; right after the #includes in their .h files. This seems to me
using namespace std;
#include
.h
You are right. And any file should only include the headers needed by that file. As for "is doing things wrong common in real world projects?" - oh, yes!