请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
工具/软件:Code Composer Studio
代码
如果(v > p+6)||(v < p-6)
{
p= v;
}
否则
{
p = p;
}
输出
v=1 p=1
v=2 p=2
v=4 p=4
我不明白为什么'p'每次更新。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Code Composer Studio