title: how to delete a member of vector which is a member of class
body: <p>I am writing a program which is a system of library.
  I have made a class of books which has setter and getter for setting and getting each information of a book; such as the name of book and the name of author.
  then I made a vector of my class.
  for example <code>vector &lt;books&gt; book(1000)</code>.
  for instance for <code>book[1] the name is abcd</code> and <code>the name of author is efg</code>
  now I need to declare a function which can delete a member of vector , for example delete book[1].
  but I dont know how to do it.
  I will be appreciate If anyone can help me!</p>
  <pre><code>class books
  {
  public:
      books()
      {
  
      }
      void set_name(string input)
      {
          name = input;
      }
      void set_author_name(string input)
      {
          author_name = input;
      }
      string get_name()
      {
          return name;
      }
      string get_author_name()
      {
          return author_name;
      }
  
  private:
      string name, author_name;
  
  };
  vector&lt;books&gt; book(1000);
  </code></pre>