Problem with my loop in C++
My problem here is for my simulation the minutes are off. For example, on one of my runs, Person #1 arrives at minute 6, but why does it show them arriving at minute 1 when the loop just begins? It should start them at minute 6. This is the output I'm getting. Please see screen shot.
Re: Problem with my loop in C++
No idea: tiny screenshot, partial code. Try adding some more printf/cout statements to display what the program is doing and why, and see if you can find the problem that way. That's how I debug code that doesn't appear to work properly (when I can't use a debugger).
|All times are GMT +5.5. The time now is 02:10.|