Created
July 29, 2015 15:45
-
-
Save vietbuiminh/30a3c1e744bea24b9ac1 to your computer and use it in GitHub Desktop.
Try Objective c "Hello World"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Try-Objective-C-by-Viet. | |
//|......................| | |
//"This is the hello world Objective C" | |
@interface Hello : NSObject | |
//the void to say | |
- (void) say; | |
@end | |
//The implementation to work the hello world object | |
@implementation Hello | |
//the void.. | |
- (void) say { | |
NSLog(@"Hello, World!"); | |
} | |
@end | |
int main(int argc, char *argv[]) | |
{ | |
@autoreleasepool {; | |
[[Hello new] say]; | |
} | |
return 0; | |
} | |
//Thank to look this code | |
//This is just the small foundation | |
//|................................| |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment