摘要: #include #include #include #include #include class MagicSand : public Vrui::Application, public GLObject { public: MagicSand(int & argc, char ** argv) :Vrui::Application(argc, argv) ... 阅读全文
posted @ 2016-07-26 15:52 20118281131 阅读(327) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std; enum CELL_STATE { CELL_EMPTY, CELL_O, CELL_X }; enum GAME_STATE { X_TURN, O_TURN, X_WON, O_WON, DRAW }; class Game { public: ... 阅读全文
posted @ 2016-07-26 15:51 20118281131 阅读(289) 评论(0) 推荐(0) 编辑
摘要: #include int main() { Display * dsp = XOpenDisplay(NULL); int screenNum = DefaultScreen(dsp); unsigned long white = WhitePixel(dsp, screenNum); unsigned long black = BlackPixel(dsp,... 阅读全文
posted @ 2016-07-26 15:19 20118281131 阅读(780) 评论(0) 推荐(0) 编辑