title: "Not declared in scope" C++ issue
body: <p>I'm writing a simple class in C++ for a class (school, not code).  I have a little C++ experience, but it's been a while so I'm relearning whatever I forgot and learning a lot of new syntax (I have much more experience in Java).  Here is the code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  
  using namespace std;
  class Project112
  {
  private:
      string romanNumeral;
      int decimalForm;
  public:
      Project112()
      {
          romanNumeral = "";      
          decimalForm = 0;
      }
      int getDecimal()
      {
          return decimalForm;
      }
  };
  </code></pre>
  
  <p>and here is the driver:</p>
  
  <pre><code>include cstdlib
  include &lt;iostream&gt;
  
  using namespace std;
  int main() 
  {
      Project112 x;
      int value2 = x.getDecimal();
      return 0;
  }
  </code></pre>
  
  <p>This is part of a larger program, but I've simplified it down to this because this is the where the problem lies.  Every time I try to run the program, I get the following errors:</p>
  
  <pre><code>main.cpp:10: error: 'Project112' was not declared in this scope
  main.cpp:10: error: expected `;' before 'x'
  main.cpp:14: error: 'x' was not declared in this scope
  </code></pre>
  
  <p>Can someone please explain the problem?  Thanks in advance.</p>