- 2

.定义人民币类RMB,要求能够通过构造函数进行对象初始化,能够通过拷贝构造函数用已存在的对象构造新对象,能应用RMB对象进行简单的算术运算,包括计算XX元XX角XX分=XX.XX元,及其逆运算(例如,实现计算1.23元=1元2角3分,3元4角5分=3.45

23rd Apr 2017, 8:21 AM
Arthur
3 Answers
+ 9
Sry, I can't help for C++, but maybe this translation helps you to reach more answerers and prevents downvotes on your question. Google translate: 'It is possible to construct a new object with an existing object by copying the constructor function. You can use the RMB object to perform simple arithmetic operations, including the calculation of XX yuan XX angle XX = XX. XX yuan, and its inverse operation (for example, to achieve the calculation of 1.23 yuan = 1 yuan 2 points 3 points, 3 yuan 4 cents 5 points = 3.45' But it's no good translation -.-
23rd Apr 2017, 8:34 AM
Tashi N
Tashi N - avatar
+ 3
Hmmm I translate with error
23rd Apr 2017, 9:28 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 1
They are talking about money. XX Dollars XX cents = XX.XX dollars.
23rd Apr 2017, 11:17 AM
mei
mei - avatar