BIGREDIOWAN
Mods
:lol: At least your a good sport
Sorry to say it buddy, but you had a small error in there, it's okay though, i fixed it for ya'. Funny how one small phrase can make the whole program wrong! :lol:friend ostream& operator<<(ostream& s,Vector v);
double mean()const; return numeric 'Heart'
IF 'Heart' const(Vector 3) then jump to 'TouchdownAuburn''
Return
END
Colossus concurs!
![]()
*SYNTAX ERROR* *Does Not Compute* :w00t :lol: :sarcasmSorry to say it buddy, but you had a small error in there, it's okay though, i fixed it for ya'. Funny how one small phrase can make the whole program wrong! :lol:class matrix;
class imatrix;
class iVector;
class Vector
{
friend class matrix;
double *data;
int len;
public:
//constructors
Vector();
Vector(int n);
//copy operator
Vector(const Vector& original);
//destructor
~Vector();
//assignment operator
Vector& operator =(const Vector &original);
Vector& operator =(const Vector original); //not really different or needed
double& operator[](int i)const ;
Vector operator +(const Vector& v);
Vector operator -(const Vector& v);
friend Vector operator*(double,Vector);
friend Vector operator*(Vector,double);
//friend Vector operator*(Vector&
//printing for debugging purposes
void rprint() const;
void print()const ;
void resize(int n);
friend double dot(const Vector& v1, const Vector& v2);
friend double norm(const Vector& v);
double norm(void)const;
void zero(void);
int length() const{ return len;}
int operator==(const Vector& v)const;
double max(void)const;
double min(void)const;
friend ostream& operator<<(ostream& s,Vector v);
double mean()const; return numeric 'Heart'
IF 'Heart' const(Vector 3) then jump to 'TouchdownAuburn''
Return
END