#include #include // for getch() int main() { // gd (graphics driver) is set to DETECT (automatically detect the type of monitor) // gm (graphics mode) int gd = DETECT, gm; // initgraph initializes the graphics system // "" specifies the path to the graphics driver file (e.g., EGAVGA.BGI) initgraph(&gd, &gm, ""); // Draw the three lines of the triangle: // line from (150, 150) to (450, 150) line(150, 150, 450, 150); // line from (150, 150) to (300, 300) line(150, 150, 300, 300); // line from (450, 150) to (300, 300) line(450, 150, 300, 300); getch(); // Wait for a key press // closegraph function closes the graphics mode closegraph(); return 0; } Comic Book Flip