converting "string" to "int" with a "/" between it
<p>I want to the user to type in the current date like, for example: </p>

<pre><code>25/05/2011
</code></pre>

<p>(everything together, just separated with a <code>/</code>)</p>

<p>Then I want to separate this input into 3 <code>int</code> variables. <code>D</code> is the Day, <code>M</code> is the month and <code>Y</code> is the year.</p>

<p>Here's what I've got so far:</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

string TOGETHER;
int D, M, Y;

int main()
{
    cin &gt;&gt; TOGETHER;

    /*
        What should I do here?
    */

    cout &lt;&lt; "\n";
    cout &lt;&lt; D &lt;&lt; "/" &lt;&lt; M &lt;&lt; "/" &lt;&lt; Y &lt;&lt; "\n";

    return 0;
}
</code></pre>
