阅读下面的程序,分析代码是否能编译通过,如果能编译成功,请列举运行结果,如果不能编译通过,请说明原因。 #import @interface Person : NSObject { @public int age; double weight; } - (void)walk; - (void)eat; @end @implementation Person - (void)walk { NSLog(@”%d岁、%f公斤的人走了一段路”, age, weight); } - (void)eat { NSLog(@”%d岁、%f公斤的人在吃东西”, age, weight); } @end int main() { Person *p = [Person new]; p->age = 20; p->weight = 40; Person *p2 = [Person new]; p2->age = 30; p2->weight = 50; p = p2; p->weight = 20; [p2 walk]; return 0; }