#include <iostream>
template< int N >
struct Factorial
{
enum {
Value = N * Factorial< N - 1 >::Value
};
};
template<>
struct Factorial< 1 >
{
enum {
Value = 1
};
};
int main( int argc, char **argv )
{
std::cout << Factorial< 4 >::Value;
return 0;
}
좆뉴비에겐 난이도가 있는........ *만 봐도 싫은데 **라니 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ
ㅋㅋ 저 이건 이해못하겠엉용
char **argv 때문에 ㄷㄷㄷ 이라면 ㅄ 인정됩니다.