全文预览

C编程小游戏扫雷毕业论文计算机设计

上传者:火锅鸡 |  格式:doc  |  页数:29 |  大小:399KB

文档介绍
EY_ESC 0x001BР#define KEY_1 '1'Р#define KEY_2 '2'Р#define KEY_3 '3'Р#define GAME_MAX_WIDTH 100Р#define GAME_MAX_HEIGHT 100Р// Strings ResourceР#define STR_GAMETITLE "ArrowKey:MoveCursor Key1:Open \РKey2:Mark Key3:OpenNeighbors"Р#define STR_GAMEWIN "Congratulations! You Win! Thank you for playing!\n"Р#define STR_GAMEOVER "Game Over, thank you for playing!\n"Р#define STR_GAMEEND "Presented by yzfy . Press ESC to exit\n"Р//-------------------------------------------------------------Р// Base classРonsoleWndР{Р public:Р static int TextOut(const char*);Р static int GotoXY(int, int);Р static int CharOut(int, int, const int);Р static int TextOut(int, int, const char*);Р static int GetKey();Р public:Р};Р//{{// onsoleWndР //Р // onsoleWnd::GetKey()Р // Wait for standard input and return the KeyCode

收藏

分享

举报
下载此文档