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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Chained lists and int values

Status
Not open for further replies.

teubenragee

Programmer
May 22, 2001
27
DE
I've created a chained list class, and I use it like a fifo.

In it, I put a class with an int inside. But if I push a value in the stack and immediatly I Pop It, the int value has changed (from '3' to '-12..... (don't remember the exact value but I think in Hexa it looks like FFFFFFFF)) why?
 
Hi teubenragee
Sounds like pointer error to me.
Have you tried using the debugger to see what is realy going on ?
If you need help with the code, let me know.
Klaus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top