Where does this number come from and how can i get this to work? : <p>I'm new to c++! and i was wondering how i get 1984400537 when adding, also how can i get the the program to accept a + - * or / and use them? Thanks!
~mccallbush ;)
P.S if you need anymore info please let me know!</p>

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

using namespace std;

int main()
{
    char repeat = 'y';
    string x;
    int num1;
    int num2;
    int result;

    cout &lt;&lt; "Please select one of the following: + - * /" &lt;&lt; "\n";
    cin &gt;&gt; x;

    while(repeat == 'y')
    {
        if(x == "+")
        {
            result = num1 + num2;
            cout &lt;&lt; "Please enter your first number: " &lt;&lt; "\n";
            cin &gt;&gt; num1;
            cout &lt;&lt; "Please enter your second number: " &lt;&lt; "\n";
            cin &gt;&gt; num2;
            cout &lt;&lt; "Answer is: " &lt;&lt; result &lt;&lt; "\n";
        }
        else if(x == "-")
        {
            result = num1 - num2;
            cout &lt;&lt; "Please enter your first number: " &lt;&lt; "\n";
            cin &gt;&gt; num1;
            cout &lt;&lt; "Please enter your second number: " &lt;&lt; "\n";
            cin &gt;&gt; num2;
            cout &lt;&lt; "Answer is: " &lt;&lt; result &lt;&lt; "\n";
        }
        else if(x == "*")
        {
            result = num1 * num2;
            cout &lt;&lt; "Please enter your first number: " &lt;&lt; "\n";
            cin &gt;&gt; num1;
            cout &lt;&lt; "Please enter your second number: " &lt;&lt; "\n";
            cin &gt;&gt; num2;
            cout &lt;&lt; "Answer is: " &lt;&lt; result &lt;&lt; "\n";
        }
        else if(x == "/")
        {
            result = num1 / num2;
            cout &lt;&lt; "Please enter your first number: " &lt;&lt; "\n";
            cin &gt;&gt; num1;
            cout &lt;&lt; "Please enter your second number: " &lt;&lt; "\n";
            cin &gt;&gt; num2;
            cout &lt;&lt; "Answer is: " &lt;&lt; result &lt;&lt; "\n";
        }
        else
        {
            cout &lt;&lt; "You did not enter a correct symbol please try again. \n";
        }
        cout &lt;&lt; "Do you want to repeat?(y/n): ";
        cin &gt;&gt; repeat;
    }
}
</code></pre>
