SHAN.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. setcolor(YELLOW);
  9. circle(100,100,50);
  10. setcolor(LIGHTCYAN);
  11. outtextxy(300,100,"* * * CIRCLE * * *");
  12. setcolor(13);
  13. outtextxy(300,150,"TO see the FAN SHAPED,Press Any Key... ...");
  14. getch();
  15. setcolor(LIGHTCYAN);
  16. setfillstyle(3,YELLOW);
  17. pieslice(100,350,45,135,100);
  18. outtextxy(300,300,"* * * SECTOR (FAN SHAPED) * * *");
  19. setcolor(13);
  20. outtextxy(300,350,"TO EXIT,Press Any Key... ...");
  21. getch();
  22. closegraph();
  23. }