title: Turbo C++ compile error "too many types in declaration"
body: <p>whenever I compile this program, I get an error saying "Too many types in decleration on line 13". I do not see any possible syntax errors but still I am facing this issue.</p>
  
  <pre><code>#include&lt;iostream.h&gt;
  #include&lt;conio.h&gt;
  
  class currency
  {
      private:
      int rupee,paise;
      int total;
      public:
      void getdata(int r,int p);
      void display();
  
  }
  void currency::getdata(int r, int p){
  
      rupee=r;
      paise=p;
      total=r*100+p;
  
  }
  void currency::display(){
  
  cout&lt;&lt;rupee&lt;&lt;" Rupees"&lt;&lt;" and "&lt;&lt;paise&lt;&lt;"Paise"&lt;&lt;endl;
  cout&lt;&lt;"Converted value="&lt;&lt;total;
  
  }
  
  int main(){
  
      currency c;
          c.getdata(5,25);
          c.display();
          getch();
          return 0;
  
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/s1aXt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s1aXt.png" alt="the error"></a></p>