Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //(b)Draw a co-ordinate axis at the center of the screen.
- //Input:
- #include<graphics.h>
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- int gd=DETECT,gm;
- initgraph(&gd,&gm,"C:\\TurboC3\\BGI");
- line(319,0,319,479);
- line(0,239,639,239);
- getch();
- closegraph();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement