#include<graphics.h>
#include<conio.h>
#include<iostream.h>
#include<stdio.h>
#include<dos.h>
#include<stdlib.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
settextstyle(0,0,7);
rectangle(40,10,600,90);
rectangle(40,120,600,200);
rectangle(40,230,600,310);
setfillstyle(7,4);
floodfill(55,15,15);
floodfill(55,125,15);
floodfill(55,235,15);
outtextxy(175,24,"happy");
outtextxy(100,130,"teachers");
outtextxy(220,240,"day");
setlinestyle(0,1,3);
setcolor(15);
settextstyle(4,0,7);
setcolor(4);
rectangle(0,0,639,478);
rectangle(5,5,634,473);
delay(1000);
while(!kbhit())
{
delay(40);
putpixel(random(640),random(640),random(15));
}
getch();
}
#include<conio.h>
#include<iostream.h>
#include<stdio.h>
#include<dos.h>
#include<stdlib.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
settextstyle(0,0,7);
rectangle(40,10,600,90);
rectangle(40,120,600,200);
rectangle(40,230,600,310);
setfillstyle(7,4);
floodfill(55,15,15);
floodfill(55,125,15);
floodfill(55,235,15);
outtextxy(175,24,"happy");
outtextxy(100,130,"teachers");
outtextxy(220,240,"day");
setlinestyle(0,1,3);
setcolor(15);
settextstyle(4,0,7);
setcolor(4);
rectangle(0,0,639,478);
rectangle(5,5,634,473);
delay(1000);
while(!kbhit())
{
delay(40);
putpixel(random(640),random(640),random(15));
}
getch();
}
No comments:
Post a Comment