title: C++ Error "expected unqualified-id '(' token" before debugging
body: <p>So I am trying to start debugging what is wrong with my code but I am currently having an issue with an error that I don't really understand. I am using Code Blocks through Oracle Virtual Machine. I am pretty sure the problem lies in the header of my code but I'll post the whole thing.</p>
  
  <p>I am trying to build a Siri like program that uses header files, prototypes, and functions. So far I only have basic math working.</p>
  
  <p>Error Messege reads:
  ||=== Build: Debug in JARVIS (compiler: GNU GCC Compiler) ===|
  /home/user/Dropbox/Lecture36CompilationAndMemory/JARVIS/JARVIS.h|1|error: expected unqualified-id before ‘)’ token|
  ||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|</p>
  
  <p>main.cpp</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include "JARVIS.h"
  
  using namespace std;
  
  int main()
  {
      string command;
      bool jarvis_running = false;
      cout &lt;&lt; "J.A.R.V.I.S" &lt;&lt; endl;
      cout &lt;&lt; "Give a command from the list of commands available." &lt;&lt; endl;
      cin &gt;&gt; command;
  
      if (command == "-h")
      {
          jarvis_running = true;
          cout &lt;&lt; "The available commands are: math" &lt;&lt; endl;
      }
  
      if (command = "math")
      {
          jarvis_running = true;
          math();
      }
  
      if (jarvis_running == false)
      {
          cout &lt;&lt; "That command was not valid" &lt;&lt; endl;
          cout &lt;&lt; "Type '-h' if you need to know the available commands." &lt;&lt; endl;
      }
  
      return 0;
  }
  </code></pre>
  
  <p>*JarvisFunctions.cpp</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include "JARVIS.h"
  
  using namespace std;
  
  int math()
  {
      char mathCommand;
  
      cout &lt;&lt; "(A)ddition, (S)ubtraction, (M)ultiplication, or (D)ivision?" &lt;&lt; endl;
      cin &gt;&gt; mathCommand;
  
      if (mathCommand == "A")
      {
          cout &lt;&lt; "input the two integers you are adding" &lt;&lt; endl;
          cin &gt;&gt; integer1 &gt;&gt; integer2;
  
          math.setValues(integer1, integer2);
          addition add;
      }
  
  
      else if(mathCommand == "S")
      {
          cout &lt;&lt; "input the two integers you are subtracting" &lt;&lt; endl;
          cin &gt;&gt; integer1 &gt;&gt; integer2;
  
          math.setValues(integer1, integer2);
          subtraction sub;
      }
  
      else if(mathCommand == "M")
      {
          cout &lt;&lt; "input the two integers you are multiplying" &lt;&lt; endl;
          cin &gt;&gt; integer1 &gt;&gt; integer2;
  
          math.setValue(integer1, integer2);
          mulitplication multi;
      }
  
      else if(mathCommand == "D")
      {
          cout &lt;&lt; "input the two integers you are dividing" &lt;&lt; endl;
          cin &gt;&gt; integer1 &gt;&gt; integer2;
  
          math.setValues(integer1, integer2);
          division div;
      }
  
      else
      {
          cout &lt;&lt; "you did not input the right fuctions, either use A, S, M, or D" &lt;&lt; endl;
      }
  }
  </code></pre>
  
  <p>header</p>
  
  <p>JARVIS.h</p>
  
  <pre><code>    #ifndef JARVIS_H
      #define JARVIS_H
  
      int math();
  
      class math
      {
          private:
          int val1;
          int val2;
  
          public:
  
          math()
          {
              cout&lt;&lt;"calling math constructor"&lt;&lt;endl;
          }
  
          void setValues (int a, int b){
              val1 = a;
              val2 = b;
          }
  
          ~math()
          {
              cout&lt;&lt;"calling math deconstructor"&lt;&lt;endl;   
          }
  
      };
  
      int addition:public math
      {
          finalVal = val1 + val2;
          return finalVal;
      };
  
      int subtraction:public math
      {
          finalVal = val1 - val2;
          return finalVal;
      };
  
      int multiplication:public math
      {
          int finalVal = val1 * val2;
          return finalVal;
      };
  
      int division:public math
      {
          int finalVal = val1 / val2;
          return finalVal;
      };
  
      #endif  //JARVIS_H
  </code></pre>