title: I am trying to compute the month, day and year. how would i go about it?
body: <p>This is what I have so far...</p>
  
  <pre><code>   // years.cpp : Defines the entry point for the console application.
    //
  
  #include "stdafx.h"
  #include &lt;iostream&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  int main()
  {
  int mm, dd, yyyy;
  cout &lt;&lt; "What is your birthdate? " &lt;&lt; endl;
  cin &gt;&gt; mm, dd, yyyy;
  
      switch(mm)
  {
  case 1:
      cout &lt;&lt; "January\n";
      break;
  case 2:
      cout &lt;&lt; "February\n";
      break;
  case 3:
      cout &lt;&lt; "March\n";
      break;
  case 4:
      cout &lt;&lt; "April\n";
      break;
  case 5:
      cout &lt;&lt; "May\n";
      break;
  case 6:
      cout &lt;&lt; "June\n";
      break;
  case 7:
      cout &lt;&lt; "July\n";
      break;
  case 8:
      cout &lt;&lt; "August\n";
      break;
  case 9:
      cout &lt;&lt; "September\n";
      break;
  case 10:
      cout &lt;&lt; "October\n";
      break;
  case 11:
      cout &lt;&lt; "November\n";
      break;
  case 12:
      cout &lt;&lt; "Dcember\n";
      break;
  }
      switch (dd)
      {
  
      }
  
  return 0;
    }
  </code></pre>
  
  <p>how do I get the day and year? It has to come out as Ex: January 4th, 2003
  I am not sure how to get the day for each month and how to get the year.</p>