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
------------------ 原始邮件 ------------------
发件人: peanut-pg ***@***.***>
发送时间: 2022年3月4日 14:56
收件人: os2edu/rust-basics-course ***@***.***>
抄送: Subscribed ***@***.***>
主题: Re: [os2edu/rust-basics-course] ring.rs 是否应该添加一个终止条件会更好 (Issue #13)
当NUM - out 的值小于 COUNT的时候应该退出循环,这样最终如果加上打印ring的值可以更加直观的看到结果
if j == COUNT { println!("{} ----> out", i+1); out = out + 1; ring[i] = 0; j = 0; if NUM-out < COUNT { break; } }
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
当NUM - out 的值小于 COUNT的时候应该退出循环,这样最终如果加上打印ring的值可以更加直观的看到结果
The text was updated successfully, but these errors were encountered: