cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
write header
write header
Mar 10, 2014 at 4:50am UTC
ben123456
(1)
can any body help me with this question
question : Assume a class named Dollars exists. Write the headers for member functions that overload the prefix and postfix ++ operators for that class.
Mar 10, 2014 at 5:16am UTC
Zhuge
(4664)
Start here:
http://www.cplusplus.com/doc/tutorial/templates/#overloading_operators
Mar 10, 2014 at 5:17am UTC
MiiNiPaa
(8886)
http://www.learncpp.com/cpp-tutorial/97-overloading-the-increment-and-decrement-operators/
Mar 10, 2014 at 7:53am UTC
Stewbond
(2827)
1
2
3
4
5
6
7
class
Dollars {
int
dollars;
public
: Dollars&
operator
++(); Dollars
operator
++(
int
); };
Topic archived. No new replies allowed.