Get Answers to all your Questions

header-bg qa

Write c++ graphics program Code to print a line

Answers (1)

best_answer


#include <graphics.h> 
int main() 
 

    int gd = DETECT, gm; 
    initgraph(&gd, &gm, ""); 
    line(150, 150, 450, 150); 
    line(150, 200, 450, 200); 
    line(150, 250, 450, 250); 

 getch(); 
    closegraph(); 
 
 

Posted by

Deependra Verma

View full answer