title: how do i print out print out vector<string> when i get a 'compilr.com/rayd360/test-songst'
body: <p>Complete program here for clarification: compilr.com/rayd360/test-songs</p>
  
  <pre><code>struct Album {
    string title;
    string year;
    string track;
    vector&lt;string&gt; tracks;
    vector&lt;string&gt;::iterator trk;
  }MyAlbums[40];
  
  cout &lt;&lt; "\n list of songs: \n";
  for(int i = 0; i &lt; 5; i++){
    cout &lt;&lt; *MyAlbums[i].trk &lt;&lt; "\n";
  }
  </code></pre>
  
  <p>gives me: "bash: line 1:   232 Segmentation fault      "</p>
  
  <p>I am needing to pass the list of tracks to a function that sorts them alphabetically then prints them out.</p>
  
  <p>Any help is very much appreciated!</p>