cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
OPERATOR OVERLOADING
OPERATOR OVERLOADING
Oct 12, 2009 at 8:05pm UTC
shivani
(1)
how will we implement post fix operation via operator overloading..please explain with an example??
Oct 12, 2009 at 8:12pm UTC
Bazzy
(6281)
(see
http://www.cplusplus.com/doc/tutorial/classes2/
for details )
example:
1
2
3
4
type
operator
++ ( type &t,
int
) {
//...
}
The second parameter (int) distinguishes the postfix ++ from the prefix ++
Topic archived. No new replies allowed.