I have a
const char *sadgan[4]={“yeksad” ,”devist”,”sisad”,”chaharsad”,”pansad”};
How can I append a sadgan[1] to test in objective c?
NSString *myString =@"";
NSString *test = [myString stringByAppendingString:sadgan[1]];
NSLog(@"% ? " ,test);
I want to write yeksad o devist o sisad o …
char*andNSStringare not converted to each other automatically. If you use Objective-C, useNSStringunless some library you use forces you otherwise."abc"is achar*,@"abc"is anNSString.will do the job.
By the way, what’s the language you used? dev for 2, chahar for 4 and pan for 5 sound like an Indo-European language…