#include #include #include "BoardT.h" #include "SingletonT.h" typedef SingletonT Board; using namespace std; void PrintBoard(); int main() { BoardT * boardRef= Board::Instance("The Borg"); cout << boardRef->Name() << endl; PrintBoard(); return 0; } void PrintBoard(){ BoardT * boardRef= Board::Instance("the board"); int x, y; for(y = 0; y < boardRef->Height(); y++) { for(x = 0; x < boardRef->Width(); x++) { cout << setw(4) << boardRef->Data(x,y); } cout << endl; } return; }