[阅读: 672] 2009-02-02 06:49:05
#include <iostream>
using namespace std;
template<int T>
class factorial {
public: static const int value = T * factorial<T - 1>::value ;
};
template<>
class factorial<0> {
public: static const int value = 1 ;
};
int main()
{
cout << factorial<6>::value << endl;
return 0;
}

机器人,
这首歌学会了没有?

我们的目标是->没有蛀牙!
