Using an object as an instance variable in a basic Objective C program, I get an "expected specifier-qualifier-list" error -
I am writing a simple program that uses an object * center from an XYPoint class as an Exercise Variable. However, I get this error message when compiling the code: Error: 'Expected specification-eligibility-list' before 'XYPoint' / P> How can I fix this? In circle H, you declare the XYPoint class: Then, in the circle, import its full definition: @ Interface Circle: NSOJject {Int Bidia; XYPoint * center; }
@ Class XYPoint;
#import "XYPoint.h"
Comments
Post a Comment