A problem from Professional C++ by Solter,Kepler
Hi. Can anyone help with this?
I implemented the code found on p.29 - 41 of the book "Professional C++" by Solter and Kepler.
My C++ compiler gives the following error message when it's compiling Database:
__________________________________________________ ___________________
Employee& Database::getEmployee(string inFirstName, string inLastName)
^
Database.cpp(51): Warning 18: implied return of Records::Database::getEmployee at closing '}' does not return value
void Database::displayAll()
^
Database.cpp(64): Warning 18: implied return of Records::Database::getEmployee at closing '}' does not return value
__________________________________________________ ___________________
These were the first lines of the error message. There were a few more lines. I can't figure out what's wrong.
Any advise?
Will be greatly appreciated.
tanchonghui
|