title: How can I convert the day of the year (1-365) to its equivalent date (ie. January 5th, 2013) C++
body: <p>I've tried searching for an algorithm that could achieve this but haven't come up with any results.</p>
  
  <p>I have the constructor Date2013(int dd).</p>
  
  <p>In this member function I created an array with the months in it (January, February, Etc)</p>
  
  <p>Then I created an if statement that takes in dd, if dd falls in between day 1 -31, then output January, if it falls between 32 - 59, then output February.</p>
  
  <p>What I'm having trouble doing is, then taking the number they input, dd, and converting that to the appropriate day in the month. ie(The 34th day of the year is February 2nd).</p>
  
  <p>Does anyone know of any algorithms or know of a way I could achieve this?</p>
  
  <p>(I'm just beginning to learn my C++ so an explanation or comments in any code would be really helpful so that I can understand your thought process and syntax)</p>