The same model applies no matter what type of code you are checking in (or documents for that matter).
无论检入何种类型的代码(或文档之类),同样的模型也是可用的。
The maintainability of a piece of code is arguably a matter of subjectivity.
一段代码的可维护性是个主观的问题。
Unlinking the file has a lot of advantages for code maintenance. The file is automatically deleted, no matter how your program crashes.
对代码维护来说,解除文件的链接有很多好处:不管您的程序是怎样崩溃的,文件都会被自动删除。
So conceptually the key difference here, besides the syntax looking slightly different, it just means that if you want a chunk of code to execute no matter what initially, ; you can use the do while loop; if you want to check a condition first, you can use the while loop.
所以概念上,则关键的区别是,除了语法看起来有点不同,它的意思是如果你想要一段代码,最初无论如何都要执行,你就可以用do,while循环;,如果你想要先检查条件,你可以用while循环。
应用推荐