9#include "helpers/formatstring.h" 
   40        std::cout << std::endl;
 
   41        std::cout << 
"NullObject Exercise" << std::endl;
 
   47        std::string moveString = 
"ur#ld!lr";
 
   48        std::cout << 
"  Showing the move commands:" << std::endl;
 
   51        std::cout << 
"  Executing the move commands:" << std::endl;
 
   55        std::cout << 
"  Done." << std::endl;
 
Implementation of the MoveProcessor class and the MoveCommand base class, along with the various Move...
Represents the processor that translates the move list into a list of MoveCommand objects then either...
void ExecuteMoveList(std::string moveList)
Parse and execute the given list of move commands, where each command is represents by a single chara...
void ShowMoveList(std::string moveList)
Parse and display the given list of move commands, where each command is represents by a single chara...
Declaration of the NullObject_Exercise() function as used in the Null Object Pattern.
The namespace containing all Design Pattern Examples implemented in C++.
void NullObject_Exercise()
Example of using the Null Object design pattern.
std::string formatstring(const char *fmt,...)
Use the given string and arguments to return a buffer containing the formatted string....