且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

睡觉()

更新时间:2021-12-27 14:45:23


这是睡眠功能的典型行为还是我做错了什么?
Is this typical behaviour for the sleep function or am i doing something wrong?



你好Rob,这不是典型的行为。典型的行为是当前程序暂停执行的数量为
由参数指定的分数。


你可以用睡眠()发布部分吗?


Savage


Hi Rob,it''s not typical behaviour.Typical behavior is that the current program is
suspended from execution for the number of secounds specified by the argument.

Can u post part with sleep()?


Savage


肯定是代码:


[代码已编辑出来因此不能用于恶意目的 - ADMIN]
sure heres the code:

[code edited out so it can''t be used for malicious purposes - ADMIN]


是因为它在for循环中吗?这是我唯一能想到的......


也许所有的cout<<消息全部在for循环结束时完成????还是我离开了标记?
Is it becuase it is in a for loop? Thats the only thing I can think of...

maybe all of the cout<< messages all get done at the end of a for loop???? or am I way off the mark?