C++ Debugging; I can't see a mistake :(
<p>So usually after a night of "drinking", I come home and check the level of drunkenness by programming. I decided to make a calculator program. I got an error, and now I can't go to sleep. Can someone please remove me from this misery. What is wrong with this code?</p>

<pre><code>#include &lt;cstdlib&gt;
#include &lt;iostream&gt;

using namespace std;

int main(int argc, char *argv[])
{
    double num1;
    double num2;
    char redo;
    char operation;
    do
      {  
         cout&lt;&lt; "Please enter your calculation "&lt;&lt; endl;
         cin &gt;&gt; num1 &gt;&gt; operation &gt;&gt;num2;
         switch operation {
           case '+':
             cout&lt;&lt; "" &lt;&lt;num1+num2 &lt;&lt; endl;
             break;

           case '/':
             cout&lt;&lt; "" &lt;&lt;num1/num2 &lt;&lt; endl;
             break;

           case '*':
             cout&lt;&lt; "" &lt;&lt;num1*num2 &lt;&lt; endl;
             break;

           case '/':
             cout&lt;&lt; "" &lt;&lt;num1/num2 &lt;&lt; endl;
             break;

      }
      while (redo=='y'||redo=='Y');
    system("PAUSE");
    return EXIT_SUCCESS;
}
</code></pre>

<p>My first debug error is at the cout.. I haven't been able to sleep :(</p>

<hr>

<p>YAY! I'm NOT drunk!! I got it to work!!! Thajink yoou giusy so mcuh!!
Oh, heres the code btw:</p>

<pre><code>#include &lt;cstdlib&gt;
#include &lt;iostream&gt;

using namespace std;

int main(int argc, char *argv[])
{
    double num1;
    double num2;
    char redo;
    char operation;
    do
      {  
         cout&lt;&lt; "Please enter your calculation "&lt;&lt; endl;
         cin &gt;&gt; num1 &gt;&gt; operation &gt;&gt;num2;
         switch (operation) {
           case '+':
             cout&lt;&lt; num1+num2 &lt;&lt; endl;
             break;

           case '-':
             cout&lt;&lt; num1-num2 &lt;&lt; endl;
             break;

           case '*':
             cout&lt;&lt; num1*num2 &lt;&lt; endl;
             break;

           case '/':
             cout&lt;&lt; num1/num2 &lt;&lt; endl;
             break;

      }
     cout&lt;&lt;" Do you want to continue? ";
     cin&gt;&gt;redo; }

     while (redo=='y'||redo=='Y');
}
</code></pre>
