I\'m writing a Line class to make numerical methods and I want these operators (*, +, -) to make my code more readable and easier to understand.
You have to overload the operators at global scope:
vector operator*(const vector& v, double alfa)
{
...
}
vector operator+(const vector& v1, const vector& v2)
{
...
}
vector operator-(const vector& v1, const vector& v2)
{
...
}
As for the linker errors, it just looks like you didn't implement the Line constructor and destructor.