#include
#include
using namespace std;
template
class array
{
enum{size = 100};
T A[size];
public:
T& operator[](int index);
};
template
T& array::operator [](int index)
{
assert(index >= 0 && index < size);
return A[index];
}
int main()
{
array fa;
fa[0] = 1.414f;
cout << "fa[0]==" << fa[0] << endl;
return 1;
}