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