title: Using if/else if in my calculator program
body: <p>I'm working on a project by where I have to create a simple program that works based of the user input. I've gone with a basic calculator but I'm having trouble getting my if/else if statements to work. Basically, if the user types in "Addition", I want the program to say "...I will help you with addition!", and so on for whether the user says "Subtraction", "Division", and "Multiplication".</p>
  
  <p>I'm new to this and so this has already taken me hours upon hours, not looking for you to do it for me but to point out my erorrs and advise so that I can learn from it will be great.</p>
  
  <p>TIA. </p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cstdlib&gt;
  #include &lt;cmath&gt;
  #include &lt;iomanip&gt;
  
  using namespace std;
  
  //user inputs what he needs help with/program output
  char Inpsum()
  {
  cout &lt;&lt; "Hello, my name is Eva! I am able to help you with basic Maths! How may I be of assistance today?" &lt;&lt; endl;
  char inpsum[20];
  cin &gt;&gt; inpsum;
  char output;
  if (inpsum == "Addition")
  {
      cout &lt;&lt; "Great! I'll help you with addition!" &lt;&lt; endl;
  }
  else if (inpsum == "Subtraction")
  {
      cout &lt;&lt; "Great! I'll help you with subtraction!" &lt;&lt; endl;
  }
  else if (inpsum == "Division")
  {
      cout &lt;&lt; "Great! I'll help you with division!" &lt;&lt; endl;
  }
  
  else if (inpsum == "Multiplication")
  {
      cout &lt;&lt; "Great! I'll help you with multiplication!" &lt;&lt; endl;
  }
  
  
  return 0; 
  </code></pre>
  
  <p>REST OF CODE</p>
  
  <pre><code>//addition function
  void Add() {
  float add1, add2;
  cout &lt;&lt; "Please enter two values you want added together" &lt;&lt; endl;
  cin &gt;&gt; add1;
  cin &gt;&gt; add2;
  cout &lt;&lt; "The answer is: " &lt;&lt; (add1 + add2) &lt;&lt; endl;
  }
  
  //subtraction function
  void Subt() {
  float subt1, subt2;
  cout &lt;&lt; "Please enter two values you want subtracted" &lt;&lt; endl;
  cin &gt;&gt; subt1;
  cin &gt;&gt; subt2;
  cout &lt;&lt; "The answer is: " &lt;&lt; (subt1 - subt2) &lt;&lt; endl;
  }
  
  //division function
  void Div()
  {
      float div1, div2;
      cout &lt;&lt; "Please enter two values you want divided" &lt;&lt; endl;
      cin &gt;&gt; div1;
      cin &gt;&gt; div2;
      cout &lt;&lt; "The answer is: " &lt;&lt; (div1 / div2) &lt;&lt; endl;
  }
  
  //multiplication function
  void Mult() {
  float mult1, mult2;
  cout &lt;&lt; "Please enter two values you want multiplacted" &lt;&lt; endl;
  cin &gt;&gt; mult1;
  cin &gt;&gt; mult2;
  cout &lt;&lt; "The answer is: " &lt;&lt; (mult1 * mult2) &lt;&lt; endl;
  }
  
  
  
  int main()
  {
  Inpsum(); //user inputs what they want help with
  Add();
  Subt();
  Div();
  Mult();
  
      return 0 ; 
  }
  </code></pre>