hello everyone :)
I'm making a class that has the subtraction operator overloaded
i subtract the 2 values in 2 diff arrays and put them in a new array
the problem now is it doesn't subtract the 2 values at all ~_~, just puts the values in a[i] to result.a[i] .........
umm Why?
Code:Poly Poly::operator -(Poly x)
{
Poly Result;
for(int i=0;i<7;i++)
Result.a[i]=a[i]-x.a[i];
return Result;
}