long func(int n)
{
( n <= 1 && (n=1) ) || ( n*=func(n-1));
return n;
}
template<int N>
struct Factorial
{
enum { Value = N * Factorial<N - 1>::Value };
};
template<>
struct Factorial<1>
{
enum { Value = 1 };
};
long func(int n)
{
( n <= 1 && (n=1) ) || ( n*=func(n-1));
return n;
}
template<int N>
struct Factorial
{
enum { Value = N * Factorial<N - 1>::Value };
};
template<>
struct Factorial<1>
{
enum { Value = 1 };
};