using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _19.流程控制之無限循環 { class Program { static void Main(string[] args) { // 無限循環也稱死循環,永不終止的循環。 // 使用do...while語句書寫無限循環 { do { } while (true); } // 使用while語句書寫無限循環 { while (true) { } } // 使用for語句書寫無限循環 { for (; ; ) { } } } } }
十九、循環控制之無限循環
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.