You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a small bug in the example that I'll flag here though. You cannot use sFIFO.count() in the for-loop termination clause because its value continually decrements as the for-loop dequeues and prints items. It meets the index i going down as i is counting up with the result that listing items quits when only half of the total entries have been printed. Mine printed three ofthe five. No big deal, but could cause a novice some grief, thus my note here.
Cheers!
The text was updated successfully, but these errors were encountered:
I personally thought this did a good job demonstrating that sFIFO.count() is not constant. though I did solve it be making sFIFO.count()=x before entering my for loop and then incrementing to x instead.
Thanks for postig rambo. Just what I need.
There is a small bug in the example that I'll flag here though. You cannot use sFIFO.count() in the for-loop termination clause because its value continually decrements as the for-loop dequeues and prints items. It meets the index i going down as i is counting up with the result that listing items quits when only half of the total entries have been printed. Mine printed three ofthe five. No big deal, but could cause a novice some grief, thus my note here.
Cheers!
The text was updated successfully, but these errors were encountered: