home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Journal 1990 - 1995 / CUJ.iso / image90 / 9010t1f3.pcx (.png) < prev    next >
PC Paintbrush Image  |  1996-01-31  |  66.7 KB  |  712x418  |  4-bit (4 colors)
   ocr: E Filu View Run Breakpoints Data Optiuns Windou Help READY [-)-odule: ANTHILL File: E-SANTHILLAANTHILL.CPP (modified) 270- [+]- void Qumen: : doTheAntTking void) C 1/ - Every ant UEBE one energy unit per cycle nEnergy - 1; nVelx 11 randoM uMaxSpeed+1)MC randon Z) 71:-1): nVely = random unaxSpwwd-1)-(randor 2). 7 1:-1); if (nEnergyc1) ( die(): ? elce € 1 Turn around if at limits of armal if Kdistance(ninitx, nInity, nX + nVelx, nY + nVelY) > uMaxRange) ( nVelx == -nVelx : nVglY == -nValY : ) 11 Move comewhere MOUBC); MACKRIDA 4A > AA.3AA A XXXX*X*A*A* 1 LA LAAA DA 2). F1-Help FZ-Bkpt F3-Mod F4- ...