首页 > 其他 > 详细

Hand Tracing Code

时间:2020-05-16 10:13:30      阅读:82      评论:0      收藏:0      [点我收藏+]

1. What dose it mean?

Hand-tracing is a simulation of code execution in which you step through instructions and track the values of the variables

2. How do you do it?


When you hand-trace code or pseudocode, you write the names of the variables on a sheet of paper, mentally execute each step of the code and update the variables.

It is best to have the code written or printed on a sheet of paper. Use a marker, such as a paper clip, to mark the current line.

Whenever a variable changes, cross out the old value and write the new value below. When a program produces output, also write down the output in another column.

 

3. Example

技术分享图片

 

Hand Tracing Code

原文:https://www.cnblogs.com/JasperZhao/p/12898229.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!