mardi 6 janvier 2015

Operators in if statement for struct members comparison?

May be this is too silly but i wonder why the below line in C++ gives me an error?


if((array[j].a>=array[i].a) && (array[j].b<=array[i].b))


Here a and b are struct members and array[] is a structure.


Any help would be appreciated.


Thank you .


Aucun commentaire:

Enregistrer un commentaire