int main()
{
Person *p = [Person new];
p.age = 10;
int a = p.age;
p.name= @"Jack";
NSLog(@"The age of that person is %d", a);
NSLog(@"The name of that person is %s", p.name);
return 0;
} 作者: jonk 时间: 2015-4-18 01:33
p.setage = 10 ; NSLog(@"The name of that person is %@", p.name);作者: Mike001 时间: 2015-4-18 08:30
恩,是的,把C和OC搞混了,谢谢了~~