setlinestyle(0,0,1);setbkcolor(i);setcolor(j);
2015-09-18 08:02
302 查看
#include <graphics.h> #include <stdio.h> int main() { int i, j; int graphdriver = DETECT; int graphmode; initgraph( &graphdriver, &graphmode, "" ); cleardevice(); printf( "NORM_WIDTH:" ); setlinestyle( 0, 0, 1 ); for ( i = 0; i < 16; i++ ) { setbkcolor( i ); for ( j = 0; j < 16; j++ ) { setcolor( j ); circle( (j + 1) * 35, 200, 34 ); } getch(); } cleardevice(); printf( "THICK_WIDTH:" ); setlinestyle( 0, 0, 3 ); for ( i = 0; i < 16; i++ ) { setbkcolor( i ); for ( j = 0; j < 16; j++ ) { setcolor( j ); circle( (j + 1) * 35, 200, 34 ); } getch(); } getch(); closegraph(); return(0); }
相关文章推荐
- 献血是件很赞的事——北漂18年(26)
- git回滚
- 二叉树的性质
- 获取执行文件路径
- 分享"狼用"API一個
- 如何在局域网访问Tomcat项目
- C++Primer第五版 10.4.1节练习
- 顺序循环队列的基本操作
- C++Primer第五版 10.3.4节练习
- H index II
- C++Primer第五版 10.3.3节练习
- arm-linux-ld 的使用
- C++Primer第五版 10.3.2节练习
- gradle--第十一章 使用Gradle命令行2
- C++Primer第五版 10.3.1节练习
- jQuery
- UVa 10443 - Rock
- 如何在没有安装微软Excel环境下操作Excel文件?
- C++Primer第五版 10.2.3节练习
- C++Primer第五版 10.2.2节练习