BAR3DBAR.CPP
上传用户:wszmarenbt
上传日期:2013-04-26
资源大小:2552k
文件大小:1k
源码类别:

Windows编程

开发平台:

Visual C++

  1. #include<graphics.h>
  2. #include<conio.h>
  3. void main(void)
  4. {
  5. int driver=DETECT,mode;
  6. registerbgidriver(EGAVGA_driver);
  7. initgraph(&driver,&mode,"");
  8. setfillstyle(6,YELLOW);
  9. bar(100,100,200,150);
  10. setcolor(LIGHTCYAN);
  11. outtextxy(300,100,"* * * BAR * * *");
  12. setcolor(13);
  13. outtextxy(300,150,"TO see the 3D Bar,Press Any Key... ...");
  14. getch();
  15. setcolor(LIGHTCYAN);
  16. setfillstyle(3,YELLOW);
  17. bar3d(100,300,200,400,10,1);
  18. outtextxy(300,300,"* * * 3D BAR * * *");
  19. setcolor(13);
  20. outtextxy(300,350,"TO EXIT,Press Any Key... ...");
  21. getch();
  22. closegraph();
  23. }