Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once;
- #include "A1Float.h"
- class VectorFloat{
- public:
- //Constructors:
- VectorFloat();
- VectorFloat(int n);
- VectorFloat(const VectorFloat& vfloat);
- //Destructor:
- virtual ~VectorFloat();
- //Methods:
- virtual int size() const;
- virtual VectorFloat& operator=(VectorFloat& vfloat);
- virtual Float& operator[](int i);
- virtual VectorFloat& operator+=(const VectorFloat& vfloat);
- protected:
- int m_dim;
- Float* m_p;
- }
- VectorFloat operator+(const VectorFloat& vf1, const VectorFloat& vf2);
Add Comment
Please, Sign In to add comment