#include <iostream>
#include <string>
using namespace std;
template <class T,int I> class WANGS
{
private :
T array[I];
public :
void set (int x)
{
int i;
for(i=0;i<I;i++)
array[i]=x+i;
}
void get()
{
cout<<"\n the total number of array is: "<<I<<endl;
cout<<"array["<<I-1<<"]="<<array[I-1]<<endl;
}
protected :
int id_wangs; //nothing else...
};
void main()
{
WANGS <int,50> wangs_1;
wangs_1.set(0);
wangs_1.get();
WANGS <int,100> wangs_2;
wangs_2.set(0);
wangs_2.get();
}