Category : C Source Code
Archive   : CBIBLE.ZIP
Filename : GRPHDFLT.C

 
Output of file : GRPHDFLT.C contained in archive : CBIBLE.ZIP
/* graphdefaults */
#include
#include

main()
{
int graphdriver = DETECT,graphmode;
struct viewporttype cur_view;
char buffer[80];
/* Initialize the graphics system */
initgraph(&graphdriver,&graphmode,"c:\\turboc");
outtextxy(10,20,"Demonstrating graphdefaults");
/* Define a viewport with clipping ON */
setviewport(10,100,300,300,1);
/* Select colors and line style */
setcolor(RED);
setlinestyle(DASHED_LINE,0,THICK_WIDTH);
/* Draw a line from (10,50) to (getmaxx(),50) to
illustrate the viewpoint */
line(10,50,getmaxx(),50);
/* Now revert to default settings */
outtextxy(10,20,"Press a key to call graphdefaults");
getch();
graphdefaults();
/* Repeat previous line drawing command to show result */
line(10,50,getmaxx(),50);
outtextxy(10,270,"Press any key to exit:");
getch();
closegraph(); /* Close graphics system */
}

  3 Responses to “Category : C Source Code
Archive   : CBIBLE.ZIP
Filename : GRPHDFLT.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/