/* Program 1.1 */ /* Initializing and deinitializing the BGI graphics mode */ /* Used header files */ #include #include #include /* declaration of used functions */ int main(void); /* Main function - our program */ int main(void) { int driver,mode,err=0; driver = VDI; mode = VDIMODE; initgraph(&driver, &mode, ""); err = graphresult(); if(err<0) { puts(grapherrormsg(err)); return(err); } settextstyle(DEFAULT_FONT,HORIZ_DIR,10); moveto((getmaxx()/2),(getmaxy()/2)); outtext("C is messy!"); getch(); /* wait for keyboard event */ closegraph(); return(graphresult()); }