i am making a math library and the work sheet im working off tell's me to do the += operator like is:
//+= operator
//Returns the left operator
//Usage: left += right
inline Vector& operator+=(Vector &left, const Vector &right)
{
left.x += right.x;
left.y += right.y;
return left;
}
but im getting a error now:
error C2804: binary 'operator +=' has too many parameters
how would i fix it?
The left-hand operand is this
.
ok i see it now thx so much for your help ill be back later with more errors most likely