The variable answer is being used without being initialized?
<p>Any help?
When I put the two numbers in, it says answer is not being initialized...?</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;
int main()
{
  int num;
  int num2;
  int working;
  int answer;
  int uChoice;
  int work( int one, int two, int todo );
  cout &lt;&lt; "Welcome to my Basic Mini-Calculator!" &lt;&lt; endl;
  do
    {
      cout &lt;&lt; endl &lt;&lt; "What do you want to do?" &lt;&lt; endl;
      cout &lt;&lt; "1) Add" &lt;&lt; endl;
      cout &lt;&lt; "2) Subtract" &lt;&lt; endl;
      cout &lt;&lt; "3) Multiply" &lt;&lt; endl;
      cout &lt;&lt; "4) Divide" &lt;&lt; endl;
      cout &lt;&lt; endl &lt;&lt; "Waiting for input... (enter a number): ";
      cin &gt;&gt; uChoice;
      cout &lt;&lt; endl;

    } while( uChoice != 1 &amp;&amp; uChoice != 2 &amp;&amp; uChoice != 3 &amp;&amp; uChoice != 4 );

  switch ( uChoice )
    {
    case 1:
      cout &lt;&lt; endl &lt;&lt; "You chose addition." &lt;&lt; endl;
      cout &lt;&lt; "Enter a number: ";
      cin &gt;&gt; num;
      cout &lt;&lt; "Enter another number: ";
      cin &gt;&gt; num2;
      working = num + num2;
      cout &lt;&lt; "Your answer is: " &lt;&lt; answer;
      break;

    case 2:
      cout &lt;&lt; endl &lt;&lt; "You chose subtraction." &lt;&lt; endl;
      cout &lt;&lt; "Enter a number: ";
      cin &gt;&gt; num;
      cout &lt;&lt; "Enter another number: ";
      cin &gt;&gt; num2;
      working = num - num2;
      cout &lt;&lt; "Your answer is: " &lt;&lt; answer;
      break;

    case 3:
      cout &lt;&lt; endl &lt;&lt; "You chose multiplication." &lt;&lt; endl;
      cout &lt;&lt; "Enter a number: ";
      cin &gt;&gt; num;
      cout &lt;&lt; "Enter another number: ";
      cin &gt;&gt; num2;
      working = num * num2;
      cout &lt;&lt; "Your answer is: " &lt;&lt; answer;
      break;

    case 4:
      cout &lt;&lt; endl &lt;&lt; "You chose division." &lt;&lt; endl;
      cout &lt;&lt; "Enter a number: ";
      cin &gt;&gt; num;
      cout &lt;&lt; "Enter another number: ";
      cin &gt;&gt; num2;
      working = num / num2;
      cout &lt;&lt; "Your answer is: " &lt;&lt; answer;
      break;
      return 0;
    }
}
</code></pre>
