摘要
本文介绍了循环不变式的理论和特点,在详细分析循环结构的基础上,结合实例介绍了在教学中引导学生通过循环不变式设计循环程序的过程,给出了通过循环不变式设计循环程序的具体步骤。
This paper introduces loop invariantsand its properties, Based on detailed analysis on loop structure, this paper introduces that how to guide students to developloops byinvariants with examples, andspecificsteps aregiven.
出处
《科技风》
2014年第14期120-121,共2页
关键词
循环不变式
断言
终止条件
Loopinvariant
Assertion
Tenninationcondition