BAR3DBAR.CPP
资源名称:C++100.rar [点击查看]
上传用户:wszmarenbt
上传日期:2013-04-26
资源大小:2552k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- #include<graphics.h>
- #include<conio.h>
- void main(void)
- {
- int driver=DETECT,mode;
- registerbgidriver(EGAVGA_driver);
- initgraph(&driver,&mode,"");
- setfillstyle(6,YELLOW);
- bar(100,100,200,150);
- setcolor(LIGHTCYAN);
- outtextxy(300,100,"* * * BAR * * *");
- setcolor(13);
- outtextxy(300,150,"TO see the 3D Bar,Press Any Key... ...");
- getch();
- setcolor(LIGHTCYAN);
- setfillstyle(3,YELLOW);
- bar3d(100,300,200,400,10,1);
- outtextxy(300,300,"* * * 3D BAR * * *");
- setcolor(13);
- outtextxy(300,350,"TO EXIT,Press Any Key... ...");
- getch();
- closegraph();
- }