Separating File Functions in Windows Visual Studio C++

Well.

In greet.cpp you should include "greet.h" instead of <iostream> because definition of greet() is in greet.cpp.