Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在 Nios 2 模拟器中运行这个程序时,我得到了预期的输出(1.000000)。
#include <stdio.h> int main () { float n=0; printf("%f\n", ++n); return 0; }
但是当我在板上运行程序时,它在 IDE 控制台中根本没有输出任何东西。输出到哪里去?输出不应该显示在 IDE 控制台中吗?
声明n为
n
float n=0.0f;
它会起作用的。