Help me learn recursivity please

Hi everyone, I am learning to program in C++ and recently i have come across recursivity.

Usually I can identify the base case quite fast, but I have trouble in writing all the cases left in function of the case being treated.

I would like to know your opinion on if there is some webpage or book that teaches recurisivity in an understandable way for a total beginner with exercices or something.

Thanks a lot!
closed account (Dy7SLyTq)
recursive just means it call itself

a basic example:
1
2
3
4
5
6
void CountDown(int Upper)
{
	if(Upper < 0) return;

	std::cout<< CountDown(Upper--) << endl;
}


google recursion and see what happens ;)
Topic archived. No new replies allowed.