Not Quite C

from Wikipedia, the free encyclopedia
NQC logo

Not Quite C ( NQC for short ) is a programming language with C -like syntax for the Lego Mindstorms and Spybotics product series. One IDE for Windows for NQC is BricxCC . It also contains many useful tools. For Lego Mindstorms NXT has its own language NXC .

NQC programs can be very simple and short. A simple program for the RCX , for example, could look like this:

task main ()
{
   OnFwd(OUT_A);
   Wait(200);
   Off(OUT_A);
}

Every program in this programming language should begin with task main . OnFwd (OUT_A); means that motor A is rotating forward. A statement ends with a semicolon . If there is a Wait statement, it only means that the program waits for the time in the brackets and only continues afterwards. In this example, motor A rotates for 2 seconds and is then switched off with the command Off (OUT_A); stopped. The program ends and begins with the curly braces.
NQC is as part of Roberta - Initiative used to children and especially girls for the so-called STEM subjects M athematics, I nformatik, N aturwissenschaften and T to inspire technic and to promote them in it.

Web links