Friday, 25 July 2014

Put Pixel CPP

#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++)
{
 putpixel(x,y,6);
}
getch();
closegraph();
}

No comments:

Post a Comment