📄 global.h
字号:
// global file
// declaration of user-defined types and defination of constants
#ifndef __SXD_GOBANG_GLOBAL__
#define __SXD_GOBANG_GLOBAL__
typedef enum { PLAY, RESTART, EXIT } ACTIONTYPE;
typedef struct {
unsigned int UserID;
ACTIONTYPE Action;
unsigned int ActionInfo;
} ACTION;
typedef struct {
bool GameEnd;
unsigned int NextPlayerID;
} GAMERESULT;
// communication language between server and client
const int OK=0;
const int FAILED=1;
const int QUERY_USERS=100;
const int ENTER_ROOM=101;
const int EXIT_ROOM=102;
const int USER_ACTION=103;
const int REGISTER_USER=104;
const int QUERY_BOARD=105;
const int LOGOUT=106;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -