求四子棋C 源文件
给地址也行~~拜托拜托~~~~~~
#include HINSTANCE hInst; HWND hWnd; ATOM MyRegisterClass(HINSTANCE hInstance); BOOL InitInstance(HINSTANCE, int); LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); void MyPaint(); BOOL XiaQi(int whichPlay, LPARAM lParam); BOOL IsWin(int whichPlay); void SetMap(); HBITMAP bmp[3],bg,bufBmp; HDC mdc,hdc,bufDC; int who=1; const int h=11,w=12; const int picH=40,picW=40; int map[w][h]; unsigned long now,pass; void SetMap() { for(int i=0; i=40) { MyPaint(); } } } return msg。
wParam; } ATOM MyRegisterClass(HINSTANCE hInstance) { WNDCLASSEX wcex; wcex。cbSize = sizeof(WNDCLASSEX); wcex。style = CS_HREDRAW | CS_VREDRAW; wcex。
lpfnWndProc = (WNDPROC)WndProc; wcex。cbClsExtra = 0; wcex。cbWndExtra = 0; wcex。hInstance = hInstance; wcex。hIcon = NULL; wcex。
hCursor = NULL; wcex。hCursor = LoadCursor(NULL, IDC_ARROW); wcex。hbrBackground = (HBRUSH)(COLOR_WINDOW 1); wcex。lpszMenuName = NULL; wcex。
lpszClassName = "canvas"; wcex。hIconSm = NULL; return RegisterClassEx(&wcex); } BOOL InitInstance(HINSTANCE hInstan。
答:我没听说过有六子棋的,要是说六子棋,那就是五子棋里面的长连了。详情>>
答:清华大学出版的c语言教程详情>>
答:到这里下载Visual C++ 的库组件(上方有个“下载”按钮)。 安装后再试。 另,机器的用户名是中文也不行。在控制面板里改中文名为英文名。详情>>