///Real route identification/////////////////////////////////////////// #include "descript.h" void FindRoute(int buffer3[], int *rr) { int i; int tmp=0, tmp1=0, tmp2=0; int count=0, count1=0, count2=0; tmp=buffer3[8]; if ((tmp!=0)&&(tmp!=0xFF)) { for (i=9;i<72;i++) {if (tmp==buffer3[i]) count+=1;} } tmp1=buffer3[9]; if ((tmp1!=0)&&(tmp!=0xFF)) { for (i=10;i<72;i++) {if (tmp1==buffer3[i]) count1+=1;} } tmp2=buffer3[10]; if ((tmp2!=0)&&(tmp!=0xFF)) { for (i=11;i<72;i++) {if (tmp2==buffer3[i]) count2+=1;} } if (count>50) { *rr=tmp; } else if (count1>49) { *rr=tmp1; } else if (count2>48) { *rr=tmp2; } else { *rr=0; } // cout<