title: Header file order
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/614302/c-header-order">C++ Header order</a>  </p>
  </blockquote>
  
  
  
  <pre><code>// Here is module This.cpp
  #include &lt;boost/regex.hpp&gt;
  #include &lt;iostream&gt;
  #include &lt;math.h&gt;
  #include "mystring_written_by_c.h"
  #include "mystring_written_by_cpp.h"
  #include &lt;list&gt;
  #include &lt;string&gt;
  #include &lt;stdio.h&gt;
  #include "stdafx.h" // for precomp
  #include &lt;tchar.h&gt;
  #include "This.h"
  #include &lt;Windows.h&gt;
  #include &lt;Winsock2.h&gt;
  </code></pre>
  
  <p>They are ordered by alphabet now.<br>
  I'm finding the best practice for ordering them. (Is there a nice formula?)</p>
  
  <p>How will you order these header files? Why?  </p>