OPERATOR OVERLOADING

how will we implement post fix operation via operator overloading..please explain with an example??
(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.