How to output to the console in C++/Windows - Stack Overflow
stackoverflow.com › questions › 587767Jul 14, 2015 · Since you mentioned stdout.txt I google'd it to see what exactly would create a stdout.txt; normally, even with a Windows app, console output goes to the allocated console, or nowhere if one is not allocated. So, assuming you are using SDL (which is the only thing that brought up stdout.txt), you should follow the advice here. Either freopen stdout and stderr with "CON", or do the other linker/compile workarounds there.
Create a console calculator in C++ | Microsoft Learn
learn.microsoft.com › en-us › cppSep 16, 2022 · On the left sidebar, make sure Visual C++ is selected. In the center, choose Windows Console Application. In the Name edit box at the bottom, name the new project CalculatorTutorial, then choose OK. An empty C++ Windows console application gets created. Console applications use a Windows console window to display output and accept user input.