这该怎么改?真看不出来哪里错了,出错指向的是构造函数,代码如下:
template <typename T>
class Vector
{
private:
int _capability;Rank _size;T* _elem;
public:
Vector(int c=DEFAULT_CAPABILITY,int s=0,T v=0)
{
_elem=new T[_capability=c];
for(_size=0;_size<s;_elem[_size++]=v);
}
~Vector(){delete [] _elem;}
void expand();
Rank insert(Rank r,T const &e);
void BubbleSort_up();
void BubbleSort_down();
void swap(T const &a,T const &b);
void show(int lo,int hi);
};