Added a cpp example for setting a mine.