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