title: Identifiers not found?
body: <p>I keep getting errors in this really simple program and I can't figure out why.  Help!</p>
  
  <pre><code>//This program will calculate a theater's revenue from a specific movie.
  #include&lt;iostream&gt;
  #include&lt;iomanip&gt;
  #include&lt;cstring&gt;
  using namespace std;
  
  int main ()
  {
      const float APRICE = 6.00,
            float CPRICE = 3.00;
  
      int movieName,
          aSold,
          cSold,
          gRev,
          nRev,
          dFee;
  
      cout &lt;&lt; "Movie title: ";
      getline(cin, movieName);
      cout &lt;&lt; "Adult tickets sold: ";
      cin.ignore();
      cin &gt;&gt; aSold;
      cout &lt;&lt; "Child tickets sold: ";
      cin &gt;&gt; cSold;
  
      gRev = (aSold * APRICE) + (cSold * CPRICE);
      nRev = gRev/5.0;
      dFee = gRev - nRev;
  
      cout &lt;&lt; fixed &lt;&lt; showpoint &lt;&lt; setprecision(2);
      cout &lt;&lt; "Movie title:" &lt;&lt; setw(48) &lt;&lt; movieName &lt;&lt; endl;
      cout &lt;&lt; "Number of adult tickets sold:" &lt;&lt; setw(31) &lt;&lt; aSold &lt;&lt; endl;
      cout &lt;&lt; "Number of child tickets sold:" &lt;&lt;setw(31) &lt;&lt; cSold &lt;&lt; endl;
      cout &lt;&lt; "Gross revenue:" &lt;&lt; setw(36) &lt;&lt; "$" &lt;&lt; setw(10) &lt;&lt; gRev &lt;&lt; endl;
      cout &lt;&lt; "Distributor fee:" &lt;&lt; setw(34) &lt;&lt; "$" &lt;&lt; setw(10) &lt;&lt; dFee &lt;&lt; endl;
      cout &lt;&lt; "Net revenue:" &lt;&lt; setw(38) &lt;&lt; "$" &lt;&lt; setw(10) &lt;&lt; nRev &lt;&lt; endl;
  
      return 0;
  }
  </code></pre>
  
  <p>And here are the errors I'm getting:</p>
  
  <pre><code> error C2062: type 'float' unexpected
   error C3861: 'getline': identifier not found
   error C2065: 'CPRICE' : undeclared identifier
  </code></pre>
  
  <p>I've included the necessary directories, I can't understand why this isn't working.  </p>