BankAccount::BankAccount()
{
cFname = (char*) malloc (sizeof(char) * ARY);
cLname = (char*) malloc (sizeof(char) * ARY);
iIDNumber = 0;
}
BankAccount::~BankAccount()
{
free(cFname);
free(cLname);
}
I haven't found out how to get new and delete to work for that right. cFname and cLname are both suppposed to be arrays of about 100. If I change anything I get 102 errors!
Help!
{
cFname = (char*) malloc (sizeof(char) * ARY);
cLname = (char*) malloc (sizeof(char) * ARY);
iIDNumber = 0;
}
BankAccount::~BankAccount()
{
free(cFname);
free(cLname);
}
I haven't found out how to get new and delete to work for that right. cFname and cLname are both suppposed to be arrays of about 100. If I change anything I get 102 errors!
Help!