- //moneydemo.cpp
- //Program to demonstrate the class Money.
- int main()
- {
- //Create three objects: yourAmount, myAmount (with 10.9 euros), ourAmount
- //Read amounts and output amounts
- //Compare amounts: if same cout << "We have the same amounts.\n" otherwise
- //cout << "One of us is richer.\n";
- //Add yourAmount and myAamount
- //Output all amounts
- return 0;
- }
