0
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.

2
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by Paul.Esson
0

I did not want to put my code with 500 lines.
I assume that no one will read.
My mistake i got it , forget to declare something.

0

Please remove this thread because has no point.
Just wasting WEB space.

0

random annoying note its a representation of an ellipse not a circle.

I know that has no relevance at all, circle just has x, y and r

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.