I'm testing using Google's code syntax highlighter. So here's a simple C++ function to see the results.
int fact(int n)
{
// quickly return the simple terminal case
if (n <= 1)
return 1.0;
return n * fact(n - 1);
}
I'm testing using Google's code syntax highlighter. So here's a simple C++ function to see the results.
int fact(int n)
{
// quickly return the simple terminal case
if (n <= 1)
return 1.0;
return n * fact(n - 1);
}
0 comments:
Post a Comment