Monday, 17 May 2010

Xcode 4 Looping output


i did chapter on loops , noticed output xcode ide not i'm expecting.

code:
    #import <foundation/foundation.h>    int main (int argc, const char * argv[])  {        @autoreleasepool {                              int n;                    (n=0; n < 20 ; n++);          {                            nslog(@"%i",n);                            nslog(@"this line %i.\n", n);                                      }      }      return 0;  }    
and output:

code:
  2012-01-23 11:16:16.393 looping program[995:707] 20  2012-01-23 11:16:16.397 looping program[995:707] line 20.    
am missing setting in xcode or something? says extent of output, yet i'm not seeing lines leading final result. :(
 

classic newbie mistake. very closely @ statement.
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment