#import <Foundation/Foundation.h>
typedef struct BirthDate{
int year;
int month;
int day;
} BirthDate;
typedef struct Person{
int age;
int height;
BirthDate birth;
} Person;
void dispPerson(Person b){
NSLog(@"age=[%d]",b.age);
NSLog(@"height=[%d]",b.height);
NSLog(@"bitth=[%d/%d/%d]",b.birth.year,b.birth.month,b.birth.day);
return;
}
int main(int argc, const char * argv[])
{
@autoreleasepool {
Person a = {10,15,{2013,9,30}};
dispPerson(a);
}
return 0;
}