Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Overloading with PTR Increment

Status
Not open for further replies.

bont

Programmer
Sep 7, 2000
200
US
This might seem silly, but how do you overload an operator, so that when used, it may increment or decrement to the next node of a linked list.

i.e. MyList++; would change to nextPTR of the current Struct, while MyList--; would change to the prevPTR of the current Struct.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top