| | |
bool function
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
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
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
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.
![]() |
Similar Threads
- Function with UnKnow Type (C++)
- Still need info on calling a function from bool! (C++)
- Calling a fuction from a bool? (C++)
- using(STL)function object (bind2nd) with a user defined function object (C++)
- Find function (C++)
Other Threads in the C++ Forum
- Previous Thread: Radio Frequency Identification (RFDI)
- Next Thread: rs232 related
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count database delete deploy developer dll download dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph gui homeworkhelp iamthwee ifstream image input int java lib library linker list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg simple sorting string strings temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






