To start off, I thank everyone in advance who tries to help me. I have not been understanding the whole concept of polymorphism and inheritance well. Or rather I have, but all of the examples I have been able to find have shown a single file. I need to write a program with 9 files: 4 header files with 4 implementation files and one Driver. There will be one base class (Account) and 2 subclasses (Checking,Saving). The last of the four classes is Customer; Account has a Customer data member and uses it in some of its functions. The process of what is supposed to happen is self-explanatory based on the header file.
Multiple files are just like single file with the exception that it is a bit tougher for someone online to just copy, paste and compile your code.
Here are a couple of rules:
1. Declarations and template/inline functions go in header files
2. Other class member functions go in source files
3. Include base headers at the top of child headers.
I'm not sure what your problem is, but try including Account.h at the top of customer.h.
Why? Because for the customer class to work, it NEEDS to know about the account class.
The you have customer derived from account and you have a customer member inside of account. That's sort of a loop which isn't going to work out easily.
Customer isn't derived from account. However, a customer holding an account and an account holding a customer (which IS what he's doing) is only possible if you make that a pointer type (this shouldn't compile at all, I believe C++ compilers are single pass).