Not really. But the amount of explanation needed will take longer than the time you said you had available. I suggest you take your time and go through things slowly and carefully. Make sure you understand each step. Jut trying random changes isn't going to get results.
This loop looks reasonable:
1 2 3 4
|
for (int i=0; i < count; i++)
{
cout << first[i] << "\t" << second[i] <<endl;
}
|
The other loop starting at line 24 should also use
i
as the subscript.
At line 35
|
third[SIZE] += first[SIZE] * second[SIZE]
|
Remember subscripts start from zero. if SIZE was equal to four, valid elements would be first[0], first[1], first[2] and first[3]. Those would be the four array elements.
So which element is accessed as first[SIZE]? Well in this example, I chose SIZE=4 so that becomes first[4]. but that isn't any of the four possible elements. It is outside the array. That can cause undefined behaviour including incorrect results and program crashes.
And what about the
+=
operator?
a += b * c
is a shorter way of saying
a = a + b* c
that is, take the existing value of a and add to it the result of b * c.
But that isn't what is needed. All that is required is a simple =
a = b * c
in order to store the result.