Ackermann Function w/ a twist.
function header:
void acker (int m, int n, int &result)
There's no return type so I can't return things for each recursive call... Instead I need to use result somehow to hold the final value. This is the first time I've ever heard of the Ackermann function and I'm trying to wrap my head around how it works so I can figure out how to use result to get the final value.
[edit] this is especially problematic if you consider that in the case that:
for A(m,n)
if m>0 AND n>0 then the call should look like:
A(m-1, A(m,n-1))
but if the return type is void I can't pass a void to a parameter that takes an int obviously...
Right now, the call #s grow so large I'm not sure how to do it.