State State::operator + (State)
that simply returns a State object of which the values of the variables are the sum of the same variables, eg:
|
|
Now I want this code to be ajustable for other problems |
result.y = y + b.y;
to your operator function.