What does this error mean?
invalid operands of types `float[20]' and `float[20]' to binary `operator+'
I can't use the + operator when adding array elements?
This is my code lines, I'm just trying to add the four surrounding values in a [20][20] array of numbers to the element that's in the middle of the four.
for(i=1;i<20;i++)
{ cout << endl;
for(j=1;j<20;j++)
{
stars[i] = stars[i] + stars[i+1] + stars[i-1] + stars[j+1] + stars[j-1]
stars[j] = stars[j] + stars[j+1] + stars[j-1] + stars[i+1] + stars[i-1]
cout << stars[i][j]<< " ";
}}
Thanks.