Skip to content

Instantly share code, notes, and snippets.

@tedheich
Created March 7, 2011 13:42
Show Gist options
  • Save tedheich/858518 to your computer and use it in GitHub Desktop.
Save tedheich/858518 to your computer and use it in GitHub Desktop.
#import <Foundation/Foundation.h>
@interface Hello: NSObject {
}
- (void) sayhello ;
@end
#import "Hello.h"
#import <Foundation/Foundation.h>
@implementation Hello
- (void) sayhello {
printf("Hello World\n");
}
@end
#import <Foundation/Foundation.h>
#import "Hello.h"
int main(void){
Hello *helloobj = [[Hello alloc] init];
[helloobj sayhello];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment