Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
NSMutable Chirag
//gcc 5.0.4 #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSMutableSet *reparingCars = [NSMutableSet setWithObjects : @"Ferrari" , @"Audi",nil]; NSMutableSet *repairedCars = [NSMutableSet setWithObjects : @"Lamborgini" , @"Toyota",nil]; NSLog(@"Reparing cars : %@",reparingCars); NSLog(@"Repaired cars : %@",repairedCars); [reparingCars removeObject : @"Audi"]; [repairedCars addObject : @"Audi"]; NSLog(@"Reparing cars : %@",reparingCars); NSLog(@"Repaired cars : %@",repairedCars); for(NSString *reparingCar in reparingCars) { NSLog(@"%@", reparingCar); } for(NSString *repairedCar in repairedCars) { NSLog(@"%@", repairedCar); } [pool drain]; return 0; }
run
|
edit
|
history
|
help
0
nsset
simple inheritance in objective c
bookinheritence
Interface implementation
acquire-lock
string compare
NSMutableStringProgram
represent value
GetRequest
Obj-C_Program_Structure_1