Tile and Cascade Image

#include<iostream.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm,n=0;
initgraph(&gd,&gm,"C:\\tc\\bgi");
setbkcolor(11);
  do
  {
  cout<<"\n\t\t Tile and Cascade Image";
  cout<<"\n\t\t***********************\n";
  cout<<"\t\t1.Tile\n\t\t2.Cascade\n\t\t3.Exit";
  cout<<"\n\t Enter your choice\n\n";
  cin>>n;
  clrscr();
  cleardevice();
     switch(n)
    {
      case 1:
      outtextxy(170,130,"Tile Image");
      rectangle(200,200,150,150);
      rectangle(280,200,230,150);
      rectangle(200,280,150,230);
      rectangle(280,280,230,230);
      break;
      case 2:
      outtextxy(170,130,"Cascade image");
      rectangle(200,200,150,150);
      rectangle(220,220,170,170);
      rectangle(240,240,190,190);
      rectangle(260,260,210,210);
      break;
    }
  }while(n<3);

}

No comments:

Post a Comment

Thank you for using this blog.