main.mm 372 B

1234567891011121314
  1. #import <Foundation/Foundation.h>
  2. #import "foo.h"
  3. #include <iostream>
  4. int main(int argc, char **argv)
  5. {
  6. NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
  7. Foo *theFoo = [[Foo alloc] init];
  8. theFoo.age = [NSNumber numberWithInt:argc];
  9. NSLog(@"%d\n",[theFoo.age intValue]);
  10. std::cout << [theFoo.age intValue] << std::endl;
  11. [pool release];
  12. return 0;
  13. }