| | |
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 array arrays beginner binary bitmap c++ c/c++ calculator char class classes code coding compile compiler console conversion convert count data database delete desktop developer directshow dll download dynamic encryption error file forms fstream function functions game generator getline givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory news node number output parameter pointer problem program programming project proxy python random read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






