⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bomb.h

📁 本程序是扫雷游戏在linux下可以运行的
💻 H
字号:
/* Mine for Gtk2@hongjie.SJTU*/#define _BOMB#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <glib.h>#include <gtk/gtk.h>#include <libintl.h>#include <gdk/gdk.h>#include <gdk/gdkkeysyms.h>#define _(x)	gettext(x)#ifdef _DEBUG#define myout(x)	fprintf(stderr, x)#else#define myout(x)#endif//#define MAX_ROW	9//#define MAX_COL 9//#define MAX_BOMB 10#define BLOCK_WIDTH	16#define	BLOCK_HEIGHT	16#define MAX_WIDTH 300#define MAX_HEIGHT 300#define SHIFT_LEN	(sizeof(int)/2)#define LOG_FILE	"./.bomb.cfg"enum {	B_UNKNOW,	B_NO,	B_ONE,	B_MARK,	B_BOMB,	B_WAIT}BLOCK_STATE;enum {	M_NO,	M_YES}BOMB_STATE;enum {	Small,	Middle,	Large}SIZE_STATE;#define swap_int(x,y)\	{\		int t;\		t = x;\		x = y;\		y = t;\	}#define swap_string(x,y)\	{\		char t[20];\		strncpy (t, x, 19);\		strncpy (x, y, 19);\		strncpy (y, t, 19);\	} 	extern int errno;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -