p>
}
} ();
}
MainWindow.cpp
# include
# include "mainwindow.h"
# include "lifewidget.h"
# include "ai_tree.h"
# include "point.h" :: MainWindow ()
{scroll; = new
} MainWindow :: newLetter ()
{> history_down (); ();
} MainWindow :: save ()
{> history_up (); ();
} MainWindow :: about ()
{:: about (this, tr ("About Checkers"), (" Checkers// "
" NN, 2010 "));
} MainWindow :: level_mid ()
{> set_game_level (1);
} MainWindow :: level_low ()
{> set_game_level (0);
} MainWindow :: createActions ()
{= new QAction (QIcon ("save.png"), SIGNAL (triggered ()), this, SLOT (newLetter ())); = new QAction (QIcon ("new.png"), tr ("& Forward"), this);> setShortcuts (QKeySequence: : Save);> setStatusTip (tr ("Forward_move")); (saveAct, SIGNAL (triggered ()), this, SLOT (save ())); = new QAction (QIcon ("low.png") , tr ("low_level"), this);> setStatusTip (tr ("low_level")); (low, SIGNAL (triggered ()), this, SLOT (level_low ())); = new QAction (QIcon ("mid.png"), tr ("& mid_level"), this);> setStatusTip (tr ("mid_level")); (mid, SIGNAL (triggered ()), this, SLOT (level_mid ())); = new QAction (tr ("& Quit"), this);> setShortcuts (QKeySequence :: Quit);> setStatusTip (tr ("Quit the application")); (quitAct, SIGNAL (triggered ()), this, SLOT (close ())); = new QAction (tr ("& About"), this);> setStatusTip (tr ("Show the application's About box")) ; (aboutAct, SIGNAL (triggered ()), this, SLOT (about ())); = new QAction (tr ("About & Qt"), this);> setStatusTip (tr ("Show the Qt library's About box ")); (aboutQtAct, SIGNAL (triggered ()), qApp, SLOT (aboutQt ()));
} MainWindow :: createMenus ()
{=
} MainWindow :: createToolBars ()
{= addToolBar (tr ("File"));> addAction (newLetterAct);> addAction (saveAct);
} MainWindow :: createStatusBar ()
{() -> showMessage (tr ("Ready"));
}
Vector.cpp
# include
# include "Vector.h" namespace std; :: ~ Vector ()
{[] V; = 0;
} _t Vector :: size ()
{n;
} _t Vector :: begin ()
{0;
} _t Vector