Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <graphics.h>
- #include <stdlib.h>
- #include <iostream.h>
- main()
- {
- const float pi=3.1415;
- initwindow(640,480);
- int a=0,x,y;
- while(a==0)
- {
- x=mousex( );
- delay(1);
- y=mousey( );
- delay(1);
- if (1)
- lineto(x,y);
- };
- system("pause");
- closegraph();
- }
Add Comment
Please, Sign In to add comment