Hello - i have a short section of what i suspect is C++ code - it is not a language i have any knowledge of - and want to translate it back to "pseudo code"
The code , i suspect lies inside a loop, and in works down a list of data
I have added pseudo code comments behind '
On line 8 , i have added an extra pair of brackets as i am unsure of the operator precedence.
thank you for looking
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
if(ah.bkodds[0] > cls->aMaxOdds) 'pseudo code If BkOdds > MaxOdds then goto next in list
skipscan = TRUE;
if(ah.bfodds[0]<1.01) 'pseudo code If BFodds < 1.01 then goto next in list
skipscan = TRUE;
if(ah.bkodds[0] < cls->aMinOdds) 'pseudo code If BkOdds < MinOdds then goto next in list
skipscan = TRUE;
double calcdiff = ((100/ah.bkodds[0] - 100/cls->aMaxOdds)/oddsrange) * diffrange + highdiff;
'pseudo code for above ? calcdiff = (((100/Bkodds - 100/MaxOdds)/oddsrange) * diffrange) + highdiff
if(ah.diff > calcdiff) ' pseudo code If diff > calcdiff then goto next in list
skipscan = TRUE;
if(skipscan == FALSE) ' ??????????? whats this ?
ah.scan |=2;