in "main", declare an integer array of size equal to or greater than the number of possible lines, initializing all elements to zero on startup.
each time you go to use a line, check to see that the array element at that line index is still zero. if not, choose a different line.
once you use a line from the file, set the value of the array element at that line's index number to one.
Last edited by jephthah; May 4th, 2008 at 2:27 am.
Reputation Points: 2143
Solved Threads: 178
Posting Maven
Offline 2,567 posts
since Feb 2008