#include #include #include "BoardT.h" #include "SingletonT2.h" typedef SingletonT Board; using namespace std; void PrintBoard(); int main() { BoardT & boardRef= Board::Instance(); cout << boardRef.Name() << endl; PrintBoard(); return 0; } void PrintBoard(){ BoardT & boardRef= Board::Instance(); 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; }