View Single Post
  #1 (permalink)  
Old January 14th, 2006, 01:10 AM
tanchonghui tanchonghui is offline
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tanchonghui
Default 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
Reply With Quote