Introduction - If you have any usage issues, please Google them yourself
By adding a member function menu items function calls in the Doc class to achieve add coins, concrete reduce coin operation in the view class in View. At this time the need to consider the corresponding to the menu function can obtain document class objects, see the procedure