Created
February 28, 2012 10:26
-
-
Save awilfox/1931766 to your computer and use it in GitHub Desktop.
Hello, World!
This file contains 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
#import <Foundation/Foundation.h> | |
int main(int argc, char *argv[]) | |
{ | |
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
NSLog(@"Hello world!"); | |
[pool drain]; | |
return 0; | |
} | |
/* | |
awilcox on ind-wkst025 Code: gcc -x objective-c -o hello -framework Foundation hello.m | |
awilcox on ind-wkst025 Code: ./hello | |
2012-02-28 05:25:58.544 hello[36069:903] Hello world! | |
awilcox on ind-wkst025 Code: | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment