LESSON 1
Open Sprinter SDK Editor and type an elementary
program in RW1 programming language:
robot "Hello"
author "NedoPC"
main ()
{
say " HELLO, WORLD! "
}
You can easily to look a structute of ours the program-robot.
At first, this is a name of the program so-called,
which follows key-word ROBOT. Second, it
a name of the author so-called which follows key-word
AUTHOR. Thirdly, this main function main (), which body
situated between opening and closing figured
brackets.
Note: the description of function main () should
precede descriptions of all other functions. Function main () actually is loop. When
the program reaches the end - program start from the begine.
It is important to write a string for command SAY by big
letters (because in the current version my font has no
small letters:). It is important to insert into the end of the text
one empty line - else a last line can
be not processed by the compiler.
So, keep (Save as) a file, for example in projects/hello/hello.rw1 and compile it
( F8 ), if compilation has passed without problems (see the message),
that run our robot ( F9 ).
You will see a black console window - at successful performance
compilations the file in a format of executed files
a Sprinter computer hello.exe will be created and the emulator with
our line below - " HELLO, WORLD!" will be started.
Press F10 for close the window of the emulator. Next advertising of Sprinter computer will open
- click it with the mouse and the site of the manufacturer of
Sprinter computer
http://www.petersplus.com will open. If you do not want to see this advertising - contact us, we to you explain
to you what to do(make).