Created
May 27, 2009 09:14
-
-
Save akio0911/118537 to your computer and use it in GitHub Desktop.
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
#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