Hi everyone, this is my first time using the forum.
I get the error msg "invalid lvalue in assignment". The line it refers to is as follows:
'counter' and 'counter1' have been declared outside main() and the code above is called within main(). I have used 'counter' as follows:Code:for(counter1=counter-5;counter1<=counter+5;counter1++){if(CONTACTS[counter1][0]=j && CONTACTS[counter1][1]=j_voisine){ counter2=counter2+1; } }
and there was no problems.Code:if(CONTACTS[counter-1][0]!=0 && (CONTACTS[counter-1][0]!=1052 || CONTACTS[counter-1][0]!=1053))
Has anybody encountered anything like this before?
Thanks,
Mike00800