Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Money1.cpp
- #include "Money1.h"
- Money::Money(double sum) {
- m_rub = (int)sum;
- m_kop = (int)((sum - m_rub) * 100);
- }
- double Money::getMoney() {
- return m_rub + (m_kop / 100);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement