bool function

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2007
Posts: 16
Reputation: bis student is an unknown quantity at this point 
Solved Threads: 0
bis student's Avatar
bis student bis student is offline Offline
Newbie Poster

bool function

 
0
  #1
Apr 25th, 2008
Hi,
could you explain how can I do the next ?
A Member function named isVolumeBigger that takes as parameter a Box(Box class) object named
another and returns bool value. The function compares the volume of the object with the
volume of another and returns true if its volume is bigger; otherwise it should return
false
Last edited by bis student; Apr 25th, 2008 at 11:25 am. Reason: explanation
there are always hope
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,413
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1470
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: bool function

 
0
  #2
Apr 25th, 2008
How do you calculate the volume of a cube ? (Hint: see your 4th grade math primer). Since we know nothing at all about that Box class can't really help you any more.
Last edited by Ancient Dragon; Apr 25th, 2008 at 11:53 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC