This is a discussion on [help] Object-Oriented Programming within the C++ Programming forums, part of the General Programming Boards category; .......
Last edited by null321; 08-02-2009 at 01:34 PM.
Yes, Recursion!If someone knows how to do that
No, try it out yourself first. Post some code if you get stuck. Don't just ask other people to do your work for you.tell me the code.
Plenty of tutorials on recursion. Basically a function that calls itself. Not very difficult.
For information on how to enable C++11 on your compiler, look here.
Unfortunately, we have no way of telling whether this is a homework question that was set by your teacher, or a homework question that you set for yourself. Either way...Originally Posted by null321
... it is a homework question, so please read and follow the homework policy.Originally Posted by null321
You would be rather naive if you believe that students do not come here to ask for answers to homework that they have not even tried to do themselves. You should attempt to write the program by yourself, with help from tutorials and other available material, and only when you are stuck do you post your attempt here and get specific help.Originally Posted by null321
On all three message board based online communities that I am a regular of, those who seek help are required to show that they have put in a reasonable amount of effort into helping themselves.Originally Posted by null321
*puts on moderator cap* No. At most I may just close this thread, but for now I shall give you another chance to help yourself so that we can help you better.Originally Posted by null321