Challenge: interesting names
This challenge is more challenging. Read through the following program, which finds common proper names that contain two adjacent A’s.
#import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { @autoreleasepool { // Read in a file as a huge string (ignoring the possibility of an error) NSString *nameString = [NSString stringWithContentsOfFile:@"/usr/share/dict/propernames" ...
Get Objective-C Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.