I am having problems to define the Methode "add()". What I have learnt to define a function on another sheet until now, is basically:
type NameOfClass::function()
{
// ...
}
So now that I try to define the function with a reference parameter (as it is a vector), I have the following declaraation in the class:
class Vector
{
Vector add(const Vector& input) const;
// ...
};
And I am trying to define that function with:
Vector* Vector::add(const Vector* input) const
{
// ...
}
I am not sure if my problem is with the "input" or because I am not defining the function in the right way.