C Program To Create Television

/////////////////////////////////////////////////////////////////////////////
//     Television Project....                        //
/////////////////////////////////////////////////////////////////////////////
 
#include<constream.h>
#include<graphics.h>
#include<dos.h>
void main(){
 int gm, gd = DETECT;
 initgraph(&gd,&gm,"e:\\tc\\bgi");
cleardevice();
int scol,srow,ecol,erow,i,j,col,row;
   settextstyle(10,0,4);
   outtextxy(170,30,"Television");

      rectangle(230,120,340,200);
      rectangle(240,130,330,190);
      setfillstyle(11,12);
      bar(232,130,238,188);
      bar(332,130,338,188);
      line(230,200,240,190);
      line(230,120,240,130);
      line(340,120,330,130);
      line(340,200,330,190);
      rectangle(240,200,330,210);

      setcolor(6);
      row=201;
      for(i=1;i<=9;i++){
 line(241,row,329,row);
      row++;
     }
      setcolor(12);
      row=121;
      int row1=191,row2=201;
      for(i=0;i<=8;i++){


   line(240,row,330,row);

    line(240,row1,330,row1);
      row++;
      row1++;

   }
// coding for first angle
       line(232,121,239,128);
       line(233,121,240,128);
       line(234,121,241,128);
       line(235,121,242,128);
       line(236,121,243,128);
       line(237,121,244,128);
       line(238,121,245,128);
       line(239,121,246,128);
// coding for second angle
     line(331,121,331,128);
     line(332,121,332,127);
     line(333,121,333,126);
     line(334,121,334,125);
     line(335,121,335,124);
     line(336,121,336,123);
     line(337,121,337,122);
     line(338,121,338,121);
// coding for third angle
     line(239,199,239,192);
     line(238,199,238,193);
     line(237,199,237,194);
     line(236,199,236,195);
     line(235,199,235,196);
     line(234,199,234,197);
     line(233,199,233,198);
     line(232,199,232,199);
// coding for fourth angle
     line(331,192,331,199);
     line(332,193,332,199);
     line(333,194,333,199);
     line(334,195,334,199);
     line(335,196,335,199);
     line(336,197,336,199);
     line(337,198,337,199);
     line(338,199,338,199);


 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