hi every one here
how r u all ?
I hope all one here is fine
I try to learn these code ,, it's not from my mind ,, I'm just try to learn it then I will write nearly and same like it ,, but Xcode give me to problems
unfortunately I did not know it where in these code and how I fix it
thanx at all my lovers and dears

how r u all ?
I hope all one here is fine
I try to learn these code ,, it's not from my mind ,, I'm just try to learn it then I will write nearly and same like it ,, but Xcode give me to problems
unfortunately I did not know it where in these code and how I fix it
PHP:
#import <Foundation/Foundation.h>
typedef enum {
kCircle,
kRectangle,
kOblateSpheroid
} ShapeType;
typedef enum {
kRedColor,
kGreenColor,
kBlueColor
} ShapeColor;
typedef struct {
int x, y, width, height;
} ShapeRect;
typedef struct {
ShapeType type;
ShapeColor fillColor;
ShapeRect bounds;
} Shape;
int main (int argc, const char * argv[])
{
Shape shapes[3];
ShapeRect rect0 = { 0, 0, 10, 30 };
shapes[0].type = kCircle;
shapes[0].fillColor = kRedColor;
shapes[0].bounds = rect0;
ShapeRect rect1 = { 30, 40, 50, 60 };
shapes[1].type = kRectangle;
shapes[1].fillColor = kGreenColor;
shapes[1].bounds = rect1;
ShapeRect rect2 = { 15, 18, 37, 29 };
shapes[2].type = kOblateSpheroid;
shapes[2].fillColor = kBlueColor;
shapes[2].bounds = rect2;
drawShapes (shapes, 3);
return (0);
} // main

thanx at all my lovers and dears