heres the deal, i have a class, with a integer variable called ticketCount. ticketCount is in a loop to read from a file, and increment, thus counting the number of tickets. strangely, it seems this increment never happens. despite every other command in the loop working. (and no, its not commented out!)
Post your code. You are probably, in some way or another, short circuting your loop (looping back to the top) before you ever get to your counter. Or your counter is inside of an if/switch/whatever statement that never gets accessed. But incrementing a variable inside of a loop definately does work.
If so, take a very close look at how the post increment operator works.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus