I know most of you are probably getting annoyed with me but this is the last thread ill make for a while i promise and I've finished my project and there are only 3 errors.
1 2 3
1>c:\users\david\documents\visual studio 2010\projects\employee database\main.cpp(38): error C3861: 'AddManager': identifier not found
1>c:\users\david\documents\visual studio 2010\projects\employee database\main.cpp(41): error C3861: 'AddEngineer': identifier not found
1>c:\users\david\documents\visual studio 2010\projects\employee database\main.cpp(44): error C3861: 'AddResearcher': identifier not found
All three are pretty much the same with small tweaks so ill use AddManager to show you what the code looks like..
Not sure why you would want to call the function without first constructing the object of the class that it belongs to. If it were static you could do that but then you might end up writing terrible code. It's tough to give you advice without having a better idea of what you are trying to do. I assume Manager inherits from Employee.
I probably should have planned more, i diddnt expect the project to be as big as it got. The point of AddManager() was to create an instance of Manager and place it in the vector.
I ended up just putting the function in the same file as main and it works fine now.