AFAIK you cannot use
BGI
with
MinGW
.
BGI
is the graphics library provided by
Turbo C/C++
(are you using
WinBGIm[
^]?).
[Update]
Move the square to the right:
- Erase the square at current position
{x,y}
. - Update position
{x,y}->{x+dx, y}
. - Delay for some time (e.g. calling
Sleep()
function). - Repeat from point
1
.
You may use the
rectangle[
^] function to draw the square.
BTW What do you mean with "
spin a circle"?
[/Update]