blob: 9ed16cba527d0c110ff6408d5e476163ad832d4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#import <myClass.h>
@import Foundation
// Single line comments
/*
* Multi line comment
*/
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog(@"Storage size for int : %d \n", sizeof(int));
NSLog (@"hello world");
if (NO)
{
NSLog(@"I am never run");
} else if (0)
{
NSLog(@"I am also never run");
} else
{
NSLog(@"I print");
}
[pool drain];
return 0;
}
@implementation MyClass {
long distance;
NSNumber height;
}
|