Introduction - If you have any usage issues, please Google them yourself
1) write a commodity class goods, which has two private data members: unit price and quantity number, and use the construction method to initialize the data members, and use cost () to calculate the total cost; 2) in the main function, call cost () to calculate the cost of Ma yunyun.