chris b
2009-04-24 16:46:26 UTC
b.x = p.x;
b.y = p.y;
b.vx = 0;
b.vy = 0;
199 C:\Dev-Cpp\new.c request for member `x' in something not a structure or union
199 C:\Dev-Cpp\new.c request for member `y' in something not a structure or union
etc, etc.
But I HAVE declared the structure above main and it was working before:
struct BALL{
int x;
int y;
int vx;
int vy;
}b;
Any ideas what is going on?