Hi guys, Sorry to ask a question as my first post. I'm totally new with c++ and I couldn't understand much about vectors.
case 1:
{
cout<<"Enter [S]avings Account , [C]hecking Account,[G]eneral Account"<<endl;
cin>>selection;
if ((selection == 'G') || (selection == 'g'))
{
acc.push_back(newAccount);
cout<<"New account added"<<flush<<endl;
break;
}//end if
else if ((selection == 'C') || (selection =='c'))
{
checkingAccount newCheckingAcc(inType2);
checking.push_back(newCheckingAcc);
cout<<"New checking Account added"<<flush<<endl;
}//end else if
else if ((selection == 'S') || (selection == 's'))
{
savingsAccount newSavingsAcc(inType1);
savings.push_back(newSavingsAcc);
cout<<"New savings account added"<<flush<<endl;
}//end else if
}//end case 1
account(string inType)
{
_strdate(dateOpened);
accountNumber = accountNumber+1;
accountBalance = 0.0;
type = inType;
};
the problem is this
class checkingAccount : public account
{
public:
checkingAccount(string inType);
int minBalance;
public:
bool checkingAccount:: styleChecker(int inMinBalance);
};
checkingAccount::checkingAccount(string inType){};
I get the error:
In constructor `checkingAccount::checkingAccount(std::string)':
no matching function for call to `account::account()'
please help.
regards,
Irwin