943,568 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 658
  • C++ RSS
Apr 25th, 2008
0

bool function

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bis student is offline Offline
16 posts
since Dec 2007
Apr 25th, 2008
0

Re: bool function

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.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,947 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Radio Frequency Identification (RFDI)
Next Thread in C++ Forum Timeline: rs232 related





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC