struct CircleStruct
{
int x ;
int y ;
int width ;
int hight ;
};
struct CircleStruct CreateCordinate = {40,0,80,40}; //this is the global declaration maybe
void Draw();
void newfunction();
And can i do this ? Why?
void newfunction()
{
CreateCordinate = {40 ,40 ,40 ,40};
}
And i want cordinates from newfunction() .
void Draw()
{
Ellipse( gHDC ,CreateCordinate.x ,CreateCordinate.y ,CreateCordinate.width ,CreateCordinate.hight)
}
Thank you for reading.