title: C++ compiler error: "return type specification for constructor invalid"
body: <p>Here's my code. When compiling all the files I get this error, I am not sure what I am doing wrong. Please advise.</p>
  
  <blockquote>
    <p>Molecule.cpp:7:34: error: return type specification for constructor invalid</p>
  </blockquote>
  
  <pre><code>//Sunny Pathak
  //Molecule.cpp    
  #include &lt;iostream&gt;
  #include "Molecule.h"    
  using namespace std;
  
  inline void Molecule::Molecule(){
         int count;
         count = 0;
  }//end function
  
  bool Molecule::read(){
      cout &lt;&lt; "Enter structure: %c\n" &lt;&lt; structure &lt;&lt; endl;
      cout &lt;&lt; "Enter full name: %c\n" &lt;&lt; name &lt;&lt; endl;
      cout &lt;&lt; "Enter weight   : %f\n" &lt;&lt; weight &lt;&lt; endl;
  }//end function
  
  
  void Molecule::display() const{
      cout &lt;&lt; structure &lt;&lt; ' ' &lt;&lt; name &lt;&lt; ' ' &lt;&lt; weight &lt;&lt; ' ' &lt;&lt; endl;
  }//end function
  </code></pre>