Thanks ne555 ,
but , Implementing the code further
getting the error error C2512: 'myvector' : no appropriate default constructor available
please advice
myvector is a class template so your line 32 and 33 are wrong, you need to specify the parameter type.
And please, use constructor list in line 10(myvector(T b) : a(b)) insteadd of affectation