Yes my apologies, I'm getting so many errors it wont compile. My question is what is wrong with this code.
>c:\users\anton\documents\visual studio 2013\projects\inheritence\inheritence\employee.cpp(5): error C2011: 'Employee' : 'class' type redefinition
1> c:\users\anton\documents\visual studio 2013\projects\inheritence\inheritence\employee.cpp(5) : see declaration of 'Employee'
1>c:\users\anton\documents\visual studio 2013\projects\inheritence\inheritence\salariedemployee.cpp(6): error C2504: 'Employee' : base class undefined
1>c:\users\anton\documents\visual studio 2013\projects\inheritence\inheritence\salariedemployee.cpp(20): error C2065: 'response' : undeclared identifier
Yes. Typically cpp files are compiled separately then linked together. The way you are doing it also works though, but c++ does not like when programmers repeat themselves.
I found a tutorial for multiple files written with visual studio in mind: http://www.learncpp.com/cpp-tutorial/18-programs-with-multiple-files/