#import <Foundation/Foundation.h>
struct Point {
double x;
double y;
};
int main() {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
struct Point p;
p.x = 5.78;
p.y = 6.23;
NSLog(@"%1g %1g", p.x, p.y);
[pool drain];
return 0;
}
/*
run:
5.78 6.23
*/