- #1
JOZ
- 8
- 0
I get this error and I don't know how to get rid of it...
I declared the Shape struct
typedef struct
{
int tShape;
int centerX;
int centerY;
int sizeX;
int sizeY;
int color;
int filled;
} Shape;
When I try to send a Shape struct called shape to a function i get the error...
shp_draw(shape);
The function I am sending it to is:
void shp_draw(Shape shape)
{
if(shape.tShape==(2))
drawBox(shape);
else if (shape.tShape==(1))
drawEllipse(shape);
else
drawCircle(shape);
}
I don't know why I am getting this error I've been trying to figure it out for an hour with no luck...
I declared the Shape struct
typedef struct
{
int tShape;
int centerX;
int centerY;
int sizeX;
int sizeY;
int color;
int filled;
} Shape;
When I try to send a Shape struct called shape to a function i get the error...
shp_draw(shape);
The function I am sending it to is:
void shp_draw(Shape shape)
{
if(shape.tShape==(2))
drawBox(shape);
else if (shape.tShape==(1))
drawEllipse(shape);
else
drawCircle(shape);
}
I don't know why I am getting this error I've been trying to figure it out for an hour with no luck...