Printf Not Working

When I try to use printf(“Hello World”); to print Hello World in the console with C++, nothing appears in the console.

Things I have already tried:
-Using the print block in blocks
-Re-installing VexOS
-Re-installing Vexcode IQ

Oddly, using print() with python does work. However, C++ is more ideal for some of my projects.

Does anyone have any new ideas on how to fix this? Thanks.

Try

printf(“Hello World\n”);

with newline added.

printf is buffered output, you either need newline or need to flush the stdout stream.

5 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.