-
Category : Data structs
Tags :
- Update : 2012-11-26
- Size : 1kb
- Downloaded :2次
- Author :z****
- About :
Nobody
- PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
First, the design yuan classes, data members contains positive and negative signs, dollars, and cents, the design constructor, output function, the overloaded+,-, pre-increment, post-increment, pre-decrement, post-decrement, the output stream insertion operator << input stream extraction operator >>. which pre-decrement, post-decrement, << and >> overloaded as friend function.
Increment represents an increase of 1 cent. Decrement, reduced by 1 cent. Binary addition and subtraction and constructed to consider.
Write the main function testing.
Function:
A. Output and output of RMB must use the overloaded operator << and >>
Two. All unary operator operating for one yuan
(+ M-ary n-angle k points), indicating that m, n, k are positive
(-M-ary n-angle k), m, n, k are negative. Negative value of the yuan, said the deficit.
$ 0 0 angle 0+ denote
Packet file list
(Preview for download)
作业9 运算符重载.cpp
Related instructions
- We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
- The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
- Please use Winrar for decompression tools
- If download fail, Try it againg or Feedback to us.
- If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
- Before downloading, you can inquire through the uploaded person information