- 13
- 0
- 约1.95万字
- 约 11页
- 2016-09-19 发布于河南
- 举报
用C语言编写的五子棋游戏
Code
#include graphics.h
#include conio.h
#include dos.h
#include bios.h
#include malloc.h
#include stdlib.h
#include stdio.h
#define R 10 /*The size of mouse*/
void init(void); /* BGI initialization */
int cover(int); /*draw lines , set color, output the text*/
void get_board(void);
/*using the loop and the line function to draw the chessboard*/
void word(int); /*input word,the color is come from the rand*/
void getmouse(int *,int *,int *);
/*get the location and the button of mouse,key=1 is the left button,key=2 is the right button*/
void visbilemouse(void);
/*Display the mouse*//*a
原创力文档

文档评论(0)