[an error occurred while processing this directive]
|
ПОПАРНОЕ СРАВНЕНИЕ МАССИВВОВ (фрагмент)
----------------------------------------
// Вариант1: работает неправильною.....................
while (cntByte!=SIZE){
if(dataHex[cntByte]!=buf[cntByte++]) goto ERRORS;
if(dataHex[cntByte]!=buf[cntByte++]) goto ERRORS;
}
// Вариант2: работает правильно........................
while (cntByte!=SIZE){
if(dataHex[cntByte]!=buf[cntByte]) goto ERRORS;
cntByte++;
if(dataHex[cntByte]!=buf[cntByte]) goto ERRORS;
cntByte++;
}
// Вариант3(один из массивов - член структуры): работает правильно........................
while (cntByte!=SIZE){
if(s->dataHex[cntByte]!=buf[cntByte++]) goto ERRORS;
if(s->dataHex[cntByte]!=buf[cntByte++]) goto ERRORS;
}