G
Gary Wessle
Hi
I am getting many similar compile errors which look like this
User.h:9: error: ISO C++ forbids declaration of ‘Account’ with no type
I cannot find out why. can you please help?
thanks
// User.h
#ifndef USER_H
#define USER_H
#include "Account.h"
class User{
public:
User();
// ~User();
Account* getAccountWithId(const int accId); //line 9
};
#endif // USER_H
//Account.h
#ifndef ACCOUNT_H
#define ACCOUNT_H
class Account {
public:
Account();
// ~Account();
};
#endif // ACCOUNT_H
I am getting many similar compile errors which look like this
User.h:9: error: ISO C++ forbids declaration of ‘Account’ with no type
I cannot find out why. can you please help?
thanks
// User.h
#ifndef USER_H
#define USER_H
#include "Account.h"
class User{
public:
User();
// ~User();
Account* getAccountWithId(const int accId); //line 9
};
#endif // USER_H
//Account.h
#ifndef ACCOUNT_H
#define ACCOUNT_H
class Account {
public:
Account();
// ~Account();
};
#endif // ACCOUNT_H