/* .......tested on Win XP */
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main(void)
{
int gd=DETECT,gm,x=50,y=30;
clrscr();
initgraph(&gd,&gm,"c:\\tc\\bgi"); /*Sometimes it may be "C:\\TC\\BGI" , It depends machine to mac..*/
for(y=90;y<400;y++)
{
putpixel(x,y,RED);
x++;
}
getch();
closegraph();
}
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main(void)
{
int gd=DETECT,gm,x=50,y=30;
clrscr();
initgraph(&gd,&gm,"c:\\tc\\bgi"); /*Sometimes it may be "C:\\TC\\BGI" , It depends machine to mac..*/
for(y=90;y<400;y++)
{
putpixel(x,y,RED);
x++;
}
getch();
closegraph();
}
No comments:
Post a Comment