C++ code for cross line using Computer Graphics
#include<conio.h>
#include<stdlib.h>
#include<math.h>
#include<dos.h>
#include<graphics.h>
void main()
{
int d=DETECT,m;
initgraph(&d,&m,"c:\\tc\\bgi");
for(int x=1;y=10;x<=10000;x++,y++)
{
putpixel(x,y,white);
}
getch();
closegraph();
}
0 comments:
Post a Comment