该文被密码保护。 阅读全文
摘要:
#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,... 阅读全文
摘要:
#define MULTI_PLOT true //Determine whether or not to plot multiple iterations. #define X_MAX 1.0 // Define extent of reference plane, used in call to gluOrtho2D(...) #define Y_MAX 1.0 #define X_M... 阅读全文
摘要:
#include #include #include #include typedef std::function Func; class Observer { public: void AddObserver(Func func) { m_vecFuncs.push_back(func); } void Notify(int i) { std::for_each(... 阅读全文