Expected expression error - Objective c -


i'm doing tutorial book: "objective-c 2.0 essentials 3rd edition" neil smyth. have tried repeatedly keep getting same "expected expression" error though books version claims run. i've checked way many times , version same books. please, can me. code below:

#import <foundation/foundation.h>  int main (int argc, const char * argv[]) {     @autoreleasepool {         int x;         int j = 54321;          (x = 0; x < 10; x++) {          }          int j = x + 10;         nslog (@"variable j in loop %i", j);          nslog (@"variable j outside loop %i", j); /* error stating " expected expression here*/      }     return 0; } 

the line

    nslog (@"variable j outside loop %i", j); 

contains lot of invisible characters (utf-8 sequence ef bf bc = object replacement character) between tab , "nslog".

deleting , rewriting line should help.

op's code opened in hexa editor: enter image description here


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -