use c++ code to implement the game 24 points.