Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 21st, 2012  |  syntax: None  |  size: 0.44 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. include stdio.h
  2. include "localinclude.h"
  3.  
  4.  
  5. # Automatically a static, unless declared public:
  6. int n
  7.  
  8. public int main(int argc, char** argv)
  9.        printf("Hello world, with an integer!  %d", n)
  10.  
  11.        n = 1
  12.  
  13.        case n
  14.        when 1
  15.            printf("n was found to be 1")
  16.        when 2
  17.            printf("n was found to be 2")
  18.        else
  19.            printf("n was some other value")
  20.  
  21.  
  22. # if no return statement on main, return 0