/* Program: x.c Try out the graphics library. */ #include #include "genlib.h" #include "simpio.h" /* include the Graphics Package */ #include "graphics.h" main() { double x, y, max_x, max_y ; /* Initialize graphics routines */ InitGraphics() ; /* Find out window sizes */ max_x = GetWindowWidth() ; max_y = GetWindowHeight() ; printf("Width = %f, Height = %f\n", max_x, max_y) ; MovePen(0.0,0.0) ; DrawLine(max_x, max_y) ; MovePen(0.0, max_y) ; DrawLine(max_x, -max_y) ; }