C Program To Create a Minitor

/////////////////////////////////////////////////////////////////////////////
//     Monitor Project....                      //
/////////////////////////////////////////////////////////////////////////////
#include<constream.h>
#include<graphics.h>
#include<dos.h>

void main(){
 int gm, gd = DETECT;
 initgraph(&gd,&gm,"e:\\tc\\bgi");
cleardevice();
settextstyle(10,0,5);
outtextxy(165,10,"Monitor");
int scol,srow,ecol,erow,i,j,col,row;
 rectangle(220,130,330,210 );

 rectangle(210,120,340,220);
 ellipse(275,230,0,360,35,10);

 scol=219,srow=129,ecol=331,erow=211;
 col=34,row=9;

 for(i=1;i<10;i++){
 setcolor(4);
 rectangle(scol,srow,ecol,erow);
 scol--,srow--,ecol++,erow++;
 ellipse(275,230,0,360,col,row);

line(245,230,305,230);

 col--,row--; }
 // rectangle(220,130,330,210 );
 scol=220,srow=130,ecol=330,erow=210;
setfillstyle(9,12);
 bar(221,131,329,209);
 setcolor(10);
circle(230,215,2);
circle(240,215,2);
circle(250,215,2);



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