- This wiki is out of date, use the continuation of this wiki instead
Program
From FenixWiki
(Difference between revisions)
| Revision as of 15:36, 1 May 2007 (edit) FCR (Talk | contribs) ← Previous diff |
Revision as of 22:08, 1 May 2007 (edit) (undo) Sandman (Talk | contribs) Next diff → |
||
| Line 1: | Line 1: | ||
| [[category:reserved]] | [[category:reserved]] | ||
| + | [[category:language]] | ||
| + | |||
| == Definition == | == Definition == | ||
| - | '''PROGRAM''' | + | '''PROGRAM''' <programname>; |
| + | |||
| + | Program is a reserved word used to begin your program. It's not needed to start a program with it. | ||
| - | Program | + | == Example == |
| + | <pre> | ||
| + | Program example; // Name this program "example", which doesn't really matter | ||
| + | Begin // Start the main code | ||
| + | Loop | ||
| + | frame; | ||
| + | End | ||
| + | End // End the main code | ||
| + | </pre> | ||
| + | When the End of the main code is reached, the program exits, if there are no [[process]]es alive anymore. | ||
Revision as of 22:08, 1 May 2007
Definition
PROGRAM <programname>;
Program is a reserved word used to begin your program. It's not needed to start a program with it.
Example
Program example; // Name this program "example", which doesn't really matter
Begin // Start the main code
Loop
frame;
End
End // End the main code
When the End of the main code is reached, the program exits, if there are no processes alive anymore.
