class VectorCpx
{
    private:
		Complex *pCpx;
		unsigned mSize, mCapacity;

	public:
		VectorCpx();	//default constructor
		VectorCpx(unsigned, const Complex&);	//constructor
		VectorCpx(unsigned);	//constructor
		VectorCpx(const VectorCpx&); //copy constructor
		~VectorCpx();	//destructor

		VectorCpx& push_back(const Complex&);
		VectorCpx* resize(unsigned);  //<----this
		VectorCpx& resize(unsigned, const Complex&);
		unsigned size() const;
		unsigned capacity() const;
		//Complex output(int) const;

		Complex operator*(const VectorCpx& vc) const;
		VectorCpx operator*(const Complex& cpx) const;
		Complex& operator[](const int& place) const;	//這裡的Complex型態後面必須要加上"&"，因為回傳的值必須能拿到Complex class裡修改
		VectorCpx operator=(const VectorCpx vc) const;
};



VectorCpx* VectorCpx::resize(unsigned place)  //<----this
{
    VectorCpx* newVec=new VectorCpx(place, Complex(0.0,2.0));  //<----this
    delete[] pCpx;
	return newVec;
}


    v1=v2.resize(10);  //<----this