摘要
讨论在网络远程教育中用 Java Applet来模拟 C语言程序的运行。对于给定的程序 ,用Applet来跟踪程序执行的各个步骤 ,观察变量的值的变化 ,显示程序的输出结果。学习者可以给出程序的输入值 ,观察对于不同输入值而导致的程序执行的流程、变量值和输出的变化。通过在网页中嵌入这种 Applet,学习者可以像使用一个调试器一样观察程序的执行过程 ,在一定程度上实现基于 Web的程序设计课程的实验。
It is difficult how learners do experiment in distance education, especially do ones of programming . A Java Applet analyzed in this paper simulates the running process of a C program. The applet traces the process of a certain program and displays the values of variants and the output of the program . In addition, it can show the changes of process, the values of variants and output caused by the different input. It implements some functions of debugger. As a supplement of other programming experiment methods, this kind of Applet could be embedded in Web pages to implement virtual programming experiment to a certain extent.
出处
《成都理工学院学报》
CAS
CSCD
北大核心
2002年第3期320-323,共4页
Journal of Chengdu University of Technology