>>Basically the same thing, and I find it to be a little easier to read
without all those brackets,

It depends how you use brackets. Personally I use them as blank lines, a little like it would look in Python,
and mostly: no braket when it is not necessary.

Your piece of code would ;ook like:

int factorial(int x)
    {
    if (x == 0) return(1);
    else return(x * factorial(x-1));
    }

Much easier to read as far as I'm concerned.

[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to