c++cpowershellcommand-prompt

Difference in running C++ program in command prompt and PowerShell


In C and C++ command-line programs, is there any differences between running your programs within command prompt or within PowerShell? (e.g.: exception handling, I/O speed, etc.)


Solution

  • Update:


    The main difference:


    [1] Note that -Encoding Utf8 invariably creates UTF-8 files with BOM in Windows PowerShell - see this answer for workarounds in case BOM-less files are needed.