float userInfo::writeFile(ofstream &outF)
{
float depBal;
outF.is_open();
depBal = updateA() + Acc;
outF << depBal;
return Acc;
}
float userInfo::writeFile(ofstream &outF)
{
float withBal;
outF.is_open();
withBal = updateA() - Acc;
outF << withBal;
return Acc;
}
you have two definitions of writefile, i'm not sure if it was mandatory, but can't you make a definition that mixes it all together...
