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.

[参考译文] CCS/TMS320C6748:int 的打印值

Guru**** 2952510 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/962070/ccs-tms320c6748-print-value-of-int

器件型号:TMS320C6748

工具/软件:Code Composer Studio

我将 LCDK C6748与 XDS100搭配使用。 我正在编写一个问题、想要打印计数器以检查它是否正常运行。 计数器存储为 int。 但我无法打印出该值。 我尝试同时使用 COUT 和 printf。

我写了另一个简单的程序来检查、但它也没有打印出来。 简单程序如下所示。

#include
使用命名空间 std;
int main(){
int i = 1;
COUT << I;
返回0;
}

如果可能、如何打印出 int i

谢谢