title: getting error on compiling small C++ program
body: <p>when i compile the program i get an error about int when i create a bookClass object using the 2 argument constructor. the error has somerthing to do with the integer argument parsed to the constructor. the program is:</p>
  
  <pre><code> #include &lt;iostream&gt;
   #include &lt;string&gt;
  
   using namespace std;
  
    class bookClass{
    private:
    string bookName;
    int bookNumber;
  
  
  
    public:
  
  
       void setName(string c){
      bookName=c;
      }
  
      void setNumber(int d){
      bookNumber=d;
      }
  
      string getName(){
      return bookName;
      }
  
      int getNumber(){
      return bookNumber;
      }
     bookClass(string a, int b){
      bookName=a;
     bookNumber=b;
      }
  
  
     };
  
    int main()
    {
     int numberr;
     string name;
      cout &lt;&lt; "Enter the book name:   ";
      cin &gt;&gt; name;
      cout &lt;&lt; "\nEnter the book number:  ";
      cin &gt;&gt; numberr;
  
      bookClass book=new bookClass(name, numberr);
  
       cout &lt;&lt; "\n\nThe book " &lt;&lt; book.getName() &lt;&lt; " has book number " &lt;&lt;        
        book.getNumber() &lt;&lt; endl;
  
  
      return 0;
      }
  </code></pre>