请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
工具/软件:Code Composer Studio
我在写
如果(A%2==0)
{
偶数;
}
否则
{
奇数;
}
此处的"A"是处于记录模式的数字。
我还想知道编程此代码所需的头文件。
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
我在写
如果(A%2==0)
{
偶数;
}
否则
{
奇数;
}
此处的"A"是处于记录模式的数字。
我还想知道编程此代码所需的头文件。
我在Google上搜索时发现了以下链接:
http://stackoverflow.com/questions/16.093万/how-do-i-check-if-an-integer-is-even-or-odd
我尝试在F2.8069万上运行一个稍作修改的版本,它工作正常。
此致,
John