hahah oh man, that is perfect
Recursion (I love google) - Page 2
Blogs > Uligor |
epicdoom
United States489 Posts
hahah oh man, that is perfect | ||
ShoCkeyy
7815 Posts
On November 14 2009 04:40 EsX_Raptor wrote: this is old You almost had me fooled! | ||
ForTheSwarm
United States556 Posts
| ||
Jyvblamo
Canada13788 Posts
| ||
DreaM)XeRO
Korea (South)4667 Posts
xD cute | ||
EsX_Raptor
United States2801 Posts
On November 14 2009 05:46 Jyvblamo wrote: What's the base case? if (user != stupid) return; that's the base case. | ||
rredtooth
5459 Posts
| ||
micronesia
United States24501 Posts
Recursion is such an interesting topic in programming imo. | ||
tossinYoSalad
United States215 Posts
| ||
barth
Ireland1272 Posts
| ||
Mastermind
Canada7096 Posts
| ||
KH1031
United States862 Posts
| ||
b3h47pte
United States1317 Posts
| ||
Fontong
United States6454 Posts
| ||
Adeny
Norway1233 Posts
On November 14 2009 05:52 EsX_Raptor wrote: if (user != stupid) return; that's the base case. Return void, why? It'll do the exact same thing if the conditional isn't met. | ||
wo0py
Netherlands922 Posts
On November 14 2009 08:09 Adeny wrote: Return void, why? It'll do the exact same thing if the conditional isn't met. how come you say thay? if that is the base there is more code. so if the user is not stupid it proceeds and it can return any other value; if (user != stupid) return; else if (user != mediocre) return "click here to learn more about recursion"; | ||
EsX_Raptor
United States2801 Posts
void rec() { if (user == bored) return; else rec(); } lol this | ||
niteReloaded
Croatia5281 Posts
| ||
Chuiu
3470 Posts
| ||
Faronel
United States658 Posts
| ||
| ||