CPP -Code ausführen
#include <graphics.h>
main()
{
int x = 50, y = 400, r = 50, d = 1;
initwindow(600, 600);
while(1)
{
setcolor(14);
circle(x, y, r);
delay(10);
setcolor(0);
circle(x, y, r);
if(x == 49 || x == 550)
d = d * -1;
x = x + d;
}
getch();
}
Stupid Sheep