title: Convert Month Name into Number C++
body: <p>I haven't touched C++ in a very long time and I'm sure this can be done in a one liner.</p>
  
  <p>I have a string <code>day</code> that I want to convert into a value between 0-11.
  I'd usually do something like this</p>
  
  <pre><code>months = array('Jan', 'Feb', 'Mar', 'Apr' ...);
  print months[day];
  </code></pre>
  
  <p>But I have no idea how to do that in C++</p>