-
Queue
Does anyone know how one would be able to have a program show the movement through a line shuch as in a supermarket line. while going through the progam it would need an input from the user giving the % chance of a person adding to the line. It would also need to count how many cycles the program went through before some one was removed from the line. if the line reaches a specific amount of people then there should be another line opened.
if you can help email ma at [email protected]
~Thanks Bunches~
-
> how one would be able to have a program show the movement through a line shuch as in a supermarket line
Use a queue.
> It would also need to count how many cycles the program went through before some one was removed from the line
int cycles = 0;
while(foo){
//stuff
cycles++;
}