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

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #import <Foundation/Foundation.h>
  2.  
  3. int main (int argc, const char * argv[]) {
  4.     NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
  5.  
  6.         int answer, result;
  7.        
  8.         // Compute result
  9.         answer = 100;
  10.         result = answer - 10;
  11.        
  12.         // Display result
  13.         NSLog(@"The result is %i\n", result + 5);
  14.        
  15.     [pool drain];
  16.     return 0;
  17. }