Thank you so much, I changed the variable name to m_count and its 
working without any errors...I didn't have to make it a static 
variable either. Again, thanks for your help.

Chai.

--- In [email protected], nag <[EMAIL PROTECTED]> wrote:
>
> The problem with your code is with the variable count. First of all 
count()
> is a function alredy defined in c++ library so the error is coming 
try
> changing the count to some other variable.
> Even if you change the variable name you may get problems because 
If you
> want to retain the value of the variable count during the recursive 
calls
> you have to declare it as static (like static int var).
> So change the name of the variable and make it static to get the 
expected
> result.
> 
> -nag.
> 
> 

Reply via email to