Guest User

Untitled

a guest
May 16th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <graphics.h>
  2.  
  3. #include <stdlib.h>
  4.  
  5. #include <iostream.h>
  6.  
  7. main()
  8.  
  9. {
  10.  
  11. const float pi=3.1415;
  12.  
  13. initwindow(640,480);
  14.  
  15. int a=0,x,y;
  16.  
  17. while(a==0)
  18. {
  19. x=mousex( );
  20. delay(1);
  21. y=mousey( );
  22. delay(1);
  23.  
  24. if (1)
  25. lineto(x,y);
  26. };
  27.  
  28. system("pause");
  29. closegraph();
  30. }
Add Comment
Please, Sign In to add comment