title: C++ copying a string array[] to a vector <string>
body: <p>So i'm making this class with a member function "insert" to copy from a string array to the classes contents which is a vector  array.</p>
  
  <p>This abort error keeps popping up saying i'm going past the Vector end, but i don't understand why....</p>
  
  <p>Here's the code:</p>
  
  <pre><code>/////////////////////////////////////////////////////////////////////////////////
  //////////////////////////////////////////      Map class   /////////////////////
  class Map
  {
  private:
  ///////////////////////////////////////////     Map Variables ///////////////
      string _name;
      vector &lt;string&gt; _contents;
  
  public:
      Map(string name){_name = name;
                       _contents.reserve(56);};
      ~Map(){};
      string getName()
      {
      return _name;
      };
  
      vector &lt;string&gt; getContents()
      {
          return _contents;
      };
  
  ///////////////////////////////////////////     Insert  ////////////////////////
              //  string* to an array of 56 strings;
      bool Insert(string* _lines_)
      {
  
      for (int I = 0; I &lt; 3; I++)
      {
          _contents[I] = _lines_[I];
      }
          return true;
      };
  
  
  };
  </code></pre>
  
  <p>If you need any more info just ask! <strong>Thanks!</strong></p>