#include<conio.h>
#include<graphics.h>
int main()
{
int i;
initgraph(610, 610); //画布大小
setcolor(BLACK);
setbkcolor(YELLOW); //设置背景颜色
cleardevice();
for (i = 2;i<600 ;i +=2) //画横线
{
if (i % 30 == 0)
line(30, i, 570,i);
}
for (i = 2; i<600; i +=2) //画竖线
{
if (i % 30 == 0)
line(i, 30, i,570);
}
system("pause");
}
利用EasyX画简单的19X19棋盘
最新推荐文章于 2023-07-08 15:20:55 发布