Changes

KFLOP C Programs

36 bytes removed, 20:45, 13 November 2017
The last part is the code that is to be executed and belongs to the main function.  Curly brackets { } define the beginning and end of the function.  This example contains only one print statement to be executed. Note how the code within the curly brackets is indented (using a tab or spaces) to show that it belongs to the main function block.  This indentation is not required but helps readers see the program structure.  Instructions must end with a semicolon ';'.   Double forward slashes allow comments to be added at the end of an instruction.  The include statement has a # symbol in front of it.
<pre class="brush:c"><span style="color: #000000;">#include "KMotionDef.h"</span>
main()
{
[http://www.dynomotion.com/Help/Cmd.htm#GetGatherDec GetGatherDec]  [http://www.dynomotion.com/Help/Cmd.htm#SetGatherDec SetGatherDec]  [http://www.dynomotion.com/Help/Cmd.htm#GetGatherHex GetGatherHex]  [http://www.dynomotion.com/Help/Cmd.htm#SetGatherHex SetGatherHex]
 
65
edits