摘要:
#include #include #include #include #include class MagicSand : public Vrui::Application, public GLObject { public: MagicSand(int & argc, char ** argv) :Vrui::Application(argc, argv) ... 阅读全文
摘要:
#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: ... 阅读全文
摘要:
#include int main() { Display * dsp = XOpenDisplay(NULL); int screenNum = DefaultScreen(dsp); unsigned long white = WhitePixel(dsp, screenNum); unsigned long black = BlackPixel(dsp,... 阅读全文