Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - ++ increment operator (postfix) (unary) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ++                  Increment operator (postfix) (unary)
------------------------------------------------------------------------------
 Syntax
   nVar++

 Arguments
   nVar is a numeric variable.

 Description
   The ++ operator increments the value of nVar by one. The operation
   is postfix, that is the incrementation precedes the assignment. The
   increment operator may not be used within expressions.

 Example
   #define EXAMPLE_OPERATOR
   #include example.hdr

   proc Test_935
   vardef
      int  n
   enddef
   n := -5
   do while n         // loop stops when n == 0, that is the condition is .f.
      ? n
      n++             // increment counter
   enddo
   endproc

   proc main
   Test_935()
   endproc

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson