|
Thanks, I get the following errors when I compile it:
code: if( CheckWithdrawal(amount) == false )
error: CheckWithdrawal(boolean) in Account cannot be applied to (double)
if( CheckWithdrawal(amount) == false )
code: if(check > balance )
error: operator > cannot be applied to boolean,double
if(check > balance )
In essence what I'm doing is comparing a boolean against a value. How can I use the object one ? would I have to call it from main() ?
|