Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Salve como arquivo.cpp
- #include <graphics.h>
- int main( )
- {
- int x = 50, y = 40;
- //inicia uma janela 800x600 com título
- initwindow( 800, 600, "Exemplo simples" );
- //enquanto não for pressionado nenhuma tecla do teclado
- while ( !kbhit() ) {
- //Limpa a tela
- cleardevice();
- //desenha uma elipse preenchida nas posições do mouse
- fillellipse( mousex(), mousey(), 50, 50 );
- //para por 0,1 segundos
- delay( 100 );
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement