title: parse error on objective c
body: <pre><code>#import &lt;Foundation/NSArray.h&gt;
  #import &lt;Foundation/NSString.h&gt;
  #import &lt;Foundation/NSAutoreleasePool.h&gt;
  #import &lt;Foundation/NSEnumerator.h&gt;
  #import &lt;stdio.h&gt;
  
  void print( NSArray *array ) {
  NSEnumerator *enumerator = [array objectEnumerator];
  id obj;
  
  while ( obj = [enumerator nextObject] ) {
      printf( "%s\n", [[obj description] cString] );
  }
  }
  
  int main( int argc, const char *argv[] ) {
  NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
  NSArray *arr = [[NSArray alloc] initWithObjects:
                  @"Me", @"Myself", @"I", nil];
  NSMutableArray *mutable = [[NSMutableArray alloc] init];
  
  // enumerate over items
  printf( "----static array\n" );
  print( arr );
  
  // add stuff
  [mutable addObject: @"One"];
  [mutable addObject: @"Two"];
  [mutable addObjectsFromArray: arr];
  [mutable addObject: @"Three"];
  
  // print em
  printf( "----mutable array\n" );
  print( mutable );
  
  // sort then print
  printf( "----sorted mutable array\n" );
  [mutable sortUsingSelector: @selector( caseInsensitiveCompare: )];
  print( mutable );
  
  // free memory
  [arr release];
  [mutable release];
  [pool release];
  
  return 0;
  }
  </code></pre>
  
  <p>this program compiled with oscv0.1.4 in windows.
  it gives an error as shown below</p>
  
  <pre><code>Error: Parse error on line 6:
  ...import &lt;stdio.h&gt;
  
  void print( NSArray 
  ---------------------^
  Expecting 'INTERFACE', 'IMPLEMENTATION', 'PROTOCOL', 'IMPORT', 'CLASS', 'DEFINE', 'EOF'
  </code></pre>
  
  <p>now i got one more error for the program shown below(it is another program)</p>
  
  <pre><code>#import "Forwarder.h"
  #import "Recipient.h"
  
  int main(void)
  {
      Forwarder *forwarder = [Forwarder new];
      Recipient *recipient = [Recipient new];
  
  [forwarder setRecipient:recipient]; //Set the recipient.
  [forwarder hello];
  
  [recipient release];
  [forwarder release];
  
  return 0;
  }
  </code></pre>
  
  <p>error is</p>
  
  <pre><code>Error: Parse error on line 3:
  ...Recipient : Object
  - (id)hello;
  @end#i
  ----------------------^
  Expecting '&lt;', '{'
  </code></pre>