论文!课程设计!
outtextxy(435,390,"0");
outtextxy(435,340,"1");
outtextxy(435,290,"2");
outtextxy(435,240,"3");
outtextxy(435,190,"4");
outtextxy(435,140,"5");
outtextxy(435,90,"6");
outtextxy(435,40,"7");
}
void DrowCircle(int i,int j) //
{
char text[80];
setfillstyle(SOLID_FILL,YELLOW);
setcolor(YELLOW);
circle(385-50*i,395-50*j,15);
floodfill(385-50*i,395-50*j,YELLOW); //
setcolor(RED);
sprintf(text,"%d,%d",i,j); //
outtextxy(385-50*i-14,395-50*j,text);
}
void GiveDrowIn(int i,int j) //
{
setfillstyle(SOLID_FILL,BLUE); //
同
setcolor(BLUE); //
同
circle(385-50*i,395-50*j,15);
floodfill(385-50*i,395-50*j,BLUE); //
outtextxy(385-50*i-14,395-50*j," ");
}
void show_result() //
{
int j=0;
while(j<MAX)
{
DrowCircle(j,board[j]);
getch();
j++;
}
getch();
for(j=0;j<MAX;j++)
{
GiveDrowIn(j,board[j]); //话棋子 圆内颜色填充 棋子上坐标标记 过去显示棋子清除 将填充颜色设置与底色相将画笔颜色设置与底色相一定区域内填充 调度相关算法求出所有结果 释放上回显示棋子区域