Thread: Class help
View Single Post
  #16 (permalink)  
Old 11-14-2007, 07:01 PM
Shaolin Shaolin is offline
Member
 
Join Date: Nov 2007
Posts: 36
Shaolin is on a distinguished road
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() ?
Reply With Quote