Still developing my program and could use yet more help if anyone has time.
I get the following error on the line of code quoted below:
Error:====================
[C++ Error] Employee.h(19): E2303 Type name expected
Error:====================
code:====================
void EmployeeSwipesCard( int DNo, SecuritySystem pSystem );
code:====================
I don't understand why, my class as you can see below has the line #include "SecuritySystem.h". In my main program I have an instance of SecuritySystem and pointers to it and they all work fine with the #include code.
Can anyone tell me whats wrong, I am guessing its something simple. (or maybe thats just be hoping).
Many thanks,
Employee.h Class
code:====================
#ifndef EMPLOYEE_H
#define EMPLOYEE_H
#include "SwipeCard.h"
#include "SecuritySystem.h"
class Employee {
public:
Employee( std::string F, std::string S, bool Auth, int ID, SwipeCard * pCard );
void DisplayDetails();
int GetID();
bool GetAuthorised() { return Authorised; };
void SetAuthorised( bool Auth );
void EmployeeSwipesCard( int DNo, SecuritySystem pSystem );
private:
std::string Surname;
std::string Forename;
bool Authorised;
int IDNo;
SwipeCard * ptrSCard;
};
#endif
code:====================
I get the following error on the line of code quoted below:
Error:====================
[C++ Error] Employee.h(19): E2303 Type name expected
Error:====================
code:====================
void EmployeeSwipesCard( int DNo, SecuritySystem pSystem );
code:====================
I don't understand why, my class as you can see below has the line #include "SecuritySystem.h". In my main program I have an instance of SecuritySystem and pointers to it and they all work fine with the #include code.
Can anyone tell me whats wrong, I am guessing its something simple. (or maybe thats just be hoping).
Many thanks,
Employee.h Class
code:====================
#ifndef EMPLOYEE_H
#define EMPLOYEE_H
#include "SwipeCard.h"
#include "SecuritySystem.h"
class Employee {
public:
Employee( std::string F, std::string S, bool Auth, int ID, SwipeCard * pCard );
void DisplayDetails();
int GetID();
bool GetAuthorised() { return Authorised; };
void SetAuthorised( bool Auth );
void EmployeeSwipesCard( int DNo, SecuritySystem pSystem );
private:
std::string Surname;
std::string Forename;
bool Authorised;
int IDNo;
SwipeCard * ptrSCard;
};
#endif
code:====================