#import <Foundation/Foundation.h>
typedef enum{
Kcircle,
KRectangle,
KOblateSpherold
}ShapeType;
typedef enum{
KredColor,
KGreenColor,
KBlueColor
}ShapeColor;
typedef struct{
int x,y,width,height;
}ShapeRect;
typedef struct {
ShapeType type;
ShapeColor fillColor;
ShapeRect bounds;
}Shape;
char *getcolor(ShapeColor colorname){
switch (colorname) {
case KredColor:
return "red";
break;
case KGreenColor......
阅读全文