Skip to content

Instantly share code, notes, and snippets.

@akio0911
Created May 27, 2009 09:14
Show Gist options
  • Save akio0911/118537 to your computer and use it in GitHub Desktop.
Save akio0911/118537 to your computer and use it in GitHub Desktop.
#import <Foundation/Foundation.h>
int main() {
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
CGPoint p1 = CGPointMake(3.0f, 5.0f);
CGPoint p2 = CGPointMake(7.0f, 11.0f);
CGPoint p3 = CGPointMake(p1.x + p2.x, p1.y + p2.y);
NSLog(@"%f, %f", p3.x, p3.y);
[pool release];
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment