摘要
针对学生难以理解VFP程序中循环语句流程,以及对其难以展开应用的情况,提出了在VFP主界面中使用由"*"符号组成的平行四边形、倒平行四边形、三角形、倒三角形、梯形和倒梯形等几何图形绘制的方法,以帮助学习者利用VFP这个具有强大功能的PRG编程技术来实现一些DIY程序。程序中采用双重"For"循环语句进行相应几何图形的绘制,浅显易懂,有助于学生对于VFP程序中循环语句的理解和掌握,效果良好。
Aiming at the situation that it is difficult for students to understand the procedure of VFP's circulations, a way of writing application program is introduced, to draw some classical geometrical figures with the star character in the VFP main interface. It helps students utilize the powerful PRG-programmer of VFP to write their DIY programs. The classical geometrical figures include a parallelogram, an inverted parallelogram, a triangle, an inverted triangle, a trapezoid and an inverted trapezoid. Double circulation is adopted to draw these geometrical figures and get a good effect. It helps students to understand and to master the theory of circulation of VFP.
出处
《计算机时代》
2013年第4期32-33,共2页
Computer Era