全文预览

C语言图形五子棋课程设计报告 带流程图

上传者:似水流年 |  格式:docx  |  页数:39 |  大小:0KB

文档介绍
txy(60,100,"P1 move; W S A D ");Р outtextxy(60,120," set : space ");Р outtextxy(60,180,"P2 move: up down left right ");Р outtextxy(60,200," set: Enter");Р outtextxy(60,240,"You can press Backspace to pull back!") ;Р outtextxy(60,280,"When you want to quit the game,");Р outtextxy(60,300,"press Esc.");Р outtextxy(220,440,"press any key to continue");Р getch();Р}Р④ bye() /*say bye~@!,实现功能同上*/Р{Р initgr();Р clearviewport();Р setcolor(4) ;Р settextstyle(0,0,6);Р outtextxy(130,180,"Thank you!");Р settextstyle(0,0,2);Р outtextxy(240,420,"press any key to quit");Р getch();Р}Р⑤ board()/*画棋盘*/Р {Р setcolor(14); /*线色*/Р setfillstyle(1,6); /*样式*/Р bar(120,50,520,450); /*棋盘底*/Р for(k=0;k<21 ;k++)Р {Р line(120+20*k,50,120+20*k,450) ; /*竖线*/Р line(120,50+20*k,520,50+20*k) ; /*横线*/Р }Р setfillstyle(1,9) ;

收藏

分享

举报
下载此文档