title: C++ input value process as math function
body: <p>I’m very new in C++ and I need your help. I want to use the input value as a mathematical function then print the result.</p>
  
  <p>What i need is:</p>
  
  <blockquote>
    <p>When user input: 2 +1 and hit Enter then output (cout>>)
    should be your result is: 3 (the sum of 2 + 1)</p>
  </blockquote>
  
  <p>The mathematical symbol could be + or * or / or -.</p>
  
  <p>Could you please help me with some example?</p>
  
  <p>Thanks in advance!</p>