You have included your "header files" twice each class file. And I don't believe that you need the following:
</string></iostream></string></iostream>
If what you have is in a single file, then the lines:
#include "Account.h"
#include "checking.h"
#include "Customer.h"
as such are kind of useless.
You need to put your classes first then functions related to the class after. Since you are using inheritance, then the class that is being inherited, needs to be stated first.
AND.... You either copied it twice (HERE) or:
#ifndef ACCOUNT_H
#define ACCOUNT_H
#include <iostream>
#include <string>
using namespace std;
class Account
{
private:
int actNumber;
double balance;
public:
virtual void printBal() = 0;
Account();
Account(int actnm, double bal);
void setBal(double bal);
void setActno(int actnm);
double getBal();
int getActnum();
};
#endif
#ifndef ACCOUNT_H
#define ACCOUNT_H
#include <iostream>
#include <string>
using namespace std;
class Account
{
private:
int actNumber;
double balance;
public:
virtual void printBal() = 0;
Account();
Account(int actnm, double bal);
void setBal(double bal);
void setActno(int actnm);
double getBal();
int getActnum();
};
#endif
YOU HAVE DEFINED "class Account" twice... that is a killer if your debuger is below par, and leads to nebulous errors.