title: What is the alternative to getopt function on Windows c++?
body: <p>The code below I'm using Posix C:</p>
  
  <pre><code>while ((opt = getopt(argc, argv, "a:p:h")) != -1)
  </code></pre>
  
  <p>How can I port this code to Windows C++ using an alternative function?</p>
  
  <p>Thanks</p>