Not Quite C

Not Quite C ( NQC short ) is a programming language with C- like syntax for the Lego Mindstorms and Spybotics product line. An IDE for Windows for NQC is BricxCC. This 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 example, for the RCX could look like this:

Task main () {     OnFwd ( OUT_A );     Wait ( 200);     Off ( OUT_A ); } Every program should start with this programming task main. OnFwd ( OUT_A ); means that the motor A rotates forward. A statement is terminated with a semicolon. If a wait statement, which simply means that the program for the time waiting in the brackets and only then continues. In this example, the motor A rotates for 2 seconds and then the command Off ( OUT_A ); stopped. The program begins and ends with the braces. NQC is as part of Roberta - initiative used to children and girls in particular for the so-called STEM subjects mathematics, computer science, natural sciences and technology to inspire and to promote it.

609651
de