C Program To Create an Envelop

/////////////////////////////////////////////////////////////////////////////
//     Envelop Project....                     //
/////////////////////////////////////////////////////////////////////////////
 
#include<constream.h>
#include<graphics.h>
void main(){
 int  gm,gd = DETECT;
 initgraph(&gd,&gm,"e:\\tc\\bgi");
 cleardevice();

 setcolor(4);
 rectangle(193,113,337,237);
 rectangle(185,105,345,245);
 setcolor(WHITE);
  rectangle(189,109,341,241);
 int scol=192,srow=112,ecol=338,erow=238;
for(int i=1;i<=7;i++){
 rectangle(scol,srow,ecol,erow);
scol--,srow--,ecol++,erow++;}
setcolor(BLUE);
line(188,106,194,112);
line(189,106,195,112);
line(190,106,196,112);
line(191,106,197,112);
line(192,106,198,112);
//////////////////////
line(344,106,338,112);
line(343,106,337,112);
line(342,106,336,112);
line(341,106,335,112);
//////////////////////
line(197,238,192,245);
line(196,238,191,245);
line(195,238,190,245);
line(194,238,189,245);
line(193,238,188,245);
//////////////////////
line(338,238,344 ,244);
line(337,238,343 ,244);
line(336,238,342 ,244);
line(335,238,341 ,244);




scol=202,srow=106,ecol=198,erow=112;
for(i=1;i<=70;i++){
line(scol,srow,ecol,erow);
line(scol,srow+132,ecol,erow+132);
scol++;
ecol++;
if(i%5==0)
{
scol+=5;
ecol+=5;
}
}
scol=186,srow=110,ecol=192,erow=114;
for(i=1;i<=65;i++){
line(scol,srow,ecol,erow);
line(scol+152,srow,ecol+152,erow);
srow++,erow++;
if(i%5==0)
{
srow+=5,erow+=5;
}
}
setcolor(15);
int row=114;
for(i=1;i<=123;i++){
line(194,row,336,row);
row++;
}
setcolor(0);
 outtextxy(196,125,"AIR MAIL");
setcolor(10);

 outtextxy(210,145,"Mehran Book");
 outtextxy(210,160,"Store Neem Ki");
 outtextxy(210,175,"Chari Sukkur.");
 outtextxy(210,190,"Tel: 071-24790");
 setcolor(WHITE);
 settextstyle(10,0,4);


 outtextxy(160,20,"ENVELOP");



getch();
getch();


}
Bhanu Namikaze

Bhanu Namikaze is an Ethical Hacker, Security Analyst, Blogger, Web Developer and a Mechanical Engineer. He Enjoys writing articles, Blogging, Debugging Errors and Capture the Flags. Enjoy Learning; There is Nothing Like Absolute Defeat - Try and try until you Succeed.

No comments:

Post a Comment