|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||
|
|||
|
Re: the main code
The while loop continues to loop while the condition in the () remains true. It is checked at the beginning of the loop. (There is another kind of while loop that checks at the end of the loop.)
So a while(true) -- or a while(1) -- or a while (1==1) -- continues forever until an outside condition stops it, such as the field gets turned off at the end of a match, or something inside the loop jumps out of the loop (not likely). It's a simple way of letting your code run forever until you turn it off. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| changing main.c | 3dude_2231 | Programming | 15 | 21-02-2007 01:54 |
| main.c | 6600gt | Programming | 3 | 29-08-2006 02:19 |
| Editing Main.c | Astronouth7303 | Programming | 22 | 20-02-2004 16:45 |
| Main Stage | archiver | 2001 | 3 | 24-06-2002 03:06 |
| main driver | Kaitlin Palmer | Off-Season Events | 0 | 09-04-2002 21:26 |