title: function declaration error, "expected constructor, destructor, or type conversion before ';' token"
body: <p>I'm getting an error on line 4:</p>
  
  <pre><code>expected constructor, destructor, or type conversion before ';' token
  </code></pre>
  
  <p>I'm pretty weak at this point when it comes to functions, so I know that there is something wrong with my function declaration(?). Anyone have any suggestions? Thanks in advance...</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  shapeDetermine (char letter);
  
  int main()
  { 
      char letter;
      int  side, area, base, height; // lengths to be used in calculating area
  
      cout &lt;&lt; "Enter the first letter of the shape:"; 
      cin&gt;&gt; letter;
      system ("pause");
      return 0;
  }
  </code></pre>
  
  <p>Added:</p>
  
  <pre><code>void shapeDetermine (char shape)            
  {
      int  side, area, base, height; // lengths to be used in calculating area
      if (letter == 's')              //determine what shape is used - square
      {
             cout&lt;&lt; " Enter the length of side of square:";
             cin&gt;&gt; side;
             area = side * side;    // formula for area of square
             cout&lt;&lt; " The area of the square is "&lt;&lt; area&lt;&lt; " cm."&lt;&lt;endl;
      }
      else if (letter =='t')        // triangle
      { 
          cout&lt;&lt; " Enter the height of triangle:";
          cin&gt;&gt; height;
          cout&lt;&lt; " Enter length of base of triangle:"&lt;&lt; endl;
          cin&gt;&gt; base;
          area = (base * height) / 2;   // formula for area of triangle
          cout&lt;&lt; " The area of the triangle is "&lt;&lt; area&lt;&lt; " cm."&lt;&lt;endl;
      }
      else
      {
          cout&lt;&lt;" Invalid shape entered."&lt;&lt; endl;  // for any character other than s||t
      }
  }
  </code></pre>