title: Changing the value of stdout in a C++ program
body: <p>I have a Windows C++ program that is doing something like:<br></p>
  
  <pre>
    FILE* pf = ...;
    *stdout = *pf;    // stdout is defined in stdio.h
  </pre>
  
  <p>I'm looking for an explanation about what happens when you change the value of the stdout file handle. Is this just a way of redirecting stdout?</p>
  
  <p>-cr</p>