Printing to the console using Visual Coding Studio's Vex Extension

The title says it all, I’m not sure why, but whenever I go to print something using printf(); it just doesn’t print anything. I’ve tried printing the first line of my main program with my controller plugged in to my computer, but neither in the interactive terminal nor in the Log does anything show up. I can plug my robot directly to the computer and the same issue, no matter where I put the printf() in my code. Am I doing something wrong? What’s not working?

Printf Not Working - VEX IQ General Discussion / IQ Technical Discussion - VEX Forum
Did you try this?

That worked… what’s the deal with this? Do all printf() have to have a \n at the end of them? If they don’t do they just not print at all? Can someone explain this sentence better from the above forum: “printf is buffered output, you either need newline or need to flush the stdout stream.”

What does buffer flush means in C++ ? - GeeksforGeeks
sic

1 Like