问题及代码:
#include <iostream>
using namespace std;
int main()
{
int x=0;
while(x<=5)
{
cout<<"B";
x+=2;
}
return 0;
}
单步执行开始:
第一步:
第二步:
第三步:
第四步:
知识点总结:
用单步执行运行代码。
学习心得:
学会用单步执行运行代码,我想对以后的程序编写,查错有很大的帮助。