[ refixed coder ]C++-graphics program:
[ refixed coder ]
draw line(x1,y1) (x2, y2) using line command in graphics.h
CODE:
#include<iostream>
#include<graphics.h>
#include<conio.h>
#include<dos.h>
using namespace std;
int main(){
int gd = DETECT, gm;
initgraph(&gd, &gm,"");
line(200, 200, 100, 100);
getch();
closegraph();
return 0;
}
CODE IMAGE:
OUTPUT:
0 Comments