#include
#include
template
class Array
{
T *elems;
int size;
public:
Array(int s)
{
size=s;
elems=new T[size];
for(int i=0;i elems[i]=0;
}
~Array()
{
delete elems;
}
T& operator[](int index)
{
return elems[index];
}
void operator=(T temp)
{
for(int i=0;i elems[i]=temp;
}
};
int main()
{
int n=10;
Arrayarr1(n);
Arrayarr2(n);
for(int i=0;i {
arr1[i]='a'+i;
arr2[i]='a'+i;
}
cout < for(int i=0;i cout< }
}
97 a
98 b
99 c
100 d
101 e
102 f
103 g
104 h
105 i
106 j