I am creating a program that is using a base class account and two derived classes sav_acct and chk_acct. I also have a derived class using sav_acct as a base called time_acct.
The problem I am having is an error when I try to compile stating 'type name expected' directed toward this statement in my main program: p=new chk_acct( arguments for account).
I have declared p as follows: account *p;.
If anybody could give me some help, it would be greatly appreciated.