Fork me on GitHub
Excelsior
A halfway decent programmer
4/16/2010
[Programming] 小心在 for 迴圈當中的 if
如果要有條件的去loop一個迴圈,那麼不要自以為聰明的先算好會有多少個index會進去那個迴圈,如果進去該迴圈的總數是重要的,那麼就放一個counter去數!
...
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment