|
|
От: |
rg45
|
|
| Дата: | 04.04.06 12:22 | ||
| Оценка: | |||
> #include <iostream>
>
> using namespace std;
>
> template <int N>
> struct Fack
> {
> enum { Ret=N*Fack<N-1>::Ret };
> };
>
> template <>
> struct Fack<1>
> {
> enum { Ret=1 };
> };
>
> int main()
> {
> cout << Fack<1000>::Ret << endl ;
>
> return 0;
> }
>> Результаты компиляции и запуска
> ANSI C++ Front-end Compiler & Virtual Machine, Version 3.0.
> Copyright (c) 1998-2003, Interstron, Ltd.
>
> *** C++ FrontEnd
> D:\soft\compiler\tmp\test.cpp.4 (1, 1): error 0332: Internal program error
> Excption:Unknown
> unknown exception!