Code 1
#include 2
#include 3
#include 4
#include 5
#include 6
#include 7
#include 8
#define R 10 /*The size of mouse*/ 9
void init(void); /* BGI initialization */ 10
int cover(int); /*draw lines , set color, output the text*/ 11
void get_board(void); 12
/*using the loop and the line function to draw the chessboard*/ 13
void word(int); /*input word,the color is come from the rand*/ 14
void getmouse(int *,int *,int *); 15
/*get the location and the button of mouse,key=1 is the left button,key=2 is the right button*/ 16
void visbilemouse(void); 17
/*Display the mouse*//*after typing ,gets the x, y and mouse button,then return */ 18
void mouse(int *,int *,int *); 19
/*drawing a mouse is to put an empty rectangular in the memory , then draw the shape of the mouse in the empty