#include
using namespace std;
template
class sequence {
T memblock [N];
public:
void setmember (int x, T value);
T getmember (int x);
};
template
void sequence::setmember (int x, T value) {
memblock[x]=value;
}
template
T sequence::getmember (int x) {
return memblock[x];
}
int main () {
sequence myints;
sequence myfloats;
myints.setmember (0,100);
myfloats.setmember (3,3.1416);
cout << myints.getmember(0) << '\n';
cout << myfloats.getmember(3) << '\n';
return 0;
}