View Single Post
  #1 (permalink)  
Old December 29th, 2009, 11:42 AM
curiaquita curiaquita is offline
Authorized User
 
Join Date: Apr 2008
Location: newcastle upon tyne, tyne and wear, United Kingdom.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Question Page 34-41 of the book

Hi Guys,
Does anyone knows where is located the file "Employee.h" that is declared on the top of the Database program on page 34 ?
Moreover I am getting 2 errors linked to overload functions.
The errors are below for your attention:

Error 2 error C2040: 'Records::Database::addEmployee' : 'Records::Employee &(std::string,std::string)' differs in levels of indirection from 'Records::Employee (std::string,std::string)' d:\programming\c++\professional c++\database\database\database.cpp 21 Database

Error 1 error C2556: 'Records::Employee &Records::Database::addEmployee(std::string,std::s tring)' : overloaded function differs only by return type from 'Records::Employee Records::Database::addEmployee(std::string,std::st ring)' d:\programming\c++\professional c++\database\database\database.cpp 21 Database

Any help will be appreciated
Thanks
Curiaquita

Last edited by curiaquita; January 10th, 2010 at 10:59 AM..