NQC stands for the Not Quite C. It is a simple programming language for programming in several LEGO MINDSTORMS products. The features f NQC varies with the product. The products are use as the target for the NQC. NQC support the six different types of targets: RCX, RCX2, CyberMaster, Scout, Spybotics and Swan.
Programming using NQC is very simple each of the target have a byte code interpreter which can be used to execute programs. NQC is not a general purpose language there are many restrictions to the byte code interpreter.
Lego mindstorms is used to create the small programmable robots. Lego Mindstorms kit contains the software and hardware to create the robots. It contains a programmable brick computer which used to control the: System, Modular sensors and motors and the other parts of the robots.
The mildstorms kit is also used for some educational tools and some small applications for projects. There are many programming languages used for Lego mindstorms.
NQC program m is programmed by using code blocks and global variables. The types of code blocks used in the NQC programming are: tasks, inline functions and subroutines.
The example of the simple code of NQC is:
// the task's code is placed here