Forum: C++ Nov 17th, 2007 |
| Replies: 5 Views: 2,012 It works but I don't really understand why. If the number isn't zero you call the function again and then output the number, how does this result in the numbers reversed? |
Forum: C++ Nov 17th, 2007 |
| Replies: 5 Views: 2,012 How will the program know the number orders if I can't use an array?
I know what a recursive function is; is it really simple and I'm just thinking too hard? |
Forum: C++ Nov 17th, 2007 |
| Replies: 5 Views: 2,012 I need to write a recursive function reverseInput that until the user enters zero it keeps on accepting numbers, then when done, outputs them in reverse order. Only thing, i cannot use strings or... |
Forum: C++ Nov 17th, 2007 |
| Replies: 16 Views: 5,588 Thanks much for all the help, I figured it out with all the suggestions |
Forum: C++ Nov 15th, 2007 |
| Replies: 16 Views: 5,588 I don't understand functions that accept a variable number of arguments. I want to make a program with a max function taking any number of type double and returns the greatest of them |