title: I dont know why Debug Error abort() has been called and it breaks at stoi
body: <p>Sorry if i mess this post up. First timer here. I'm hoping someone can really help me.In Album.cpp is where my read function is, I think the problem is coming from there, specifically from <code>min = stoi(temp);</code> But heres the thing. 
  <code>. My friends have a very similar code if not identical except for the variable names. And everytime i run my Main.cpp I get an error about a debug error and abort(). I checked the debugger on</code> min = stoi(temp); ` and it didnt show it having any values even though i use it alot in the program to hold values. I then just made temp = '0'; just to see if it will go on without the error and it does! The program doest do what i need it to do but theres no error. I just dont know why this is? </p>
  
  <p>Main.cpp</p>
  
  <pre><code>int main() 
  {
      Song total;
      int choice;
      string m_filename;
      Album x;
      cout &lt;&lt; "Album Program" &lt;&lt; endl;
      cout &lt;&lt; "----------" &lt;&lt; endl;
      cout &lt;&lt; "1 - Read ablbum info from a file" &lt;&lt; endl;
      cout &lt;&lt; "2 - Write album info to a file" &lt;&lt; endl;
      cout &lt;&lt; "3 - Show all album info on screen" &lt;&lt; endl;
      cout &lt;&lt; "4 - Show ablum time on screen" &lt;&lt; endl;
      cout &lt;&lt; "5 - Exit" &lt;&lt; endl;
      cout &lt;&lt; "Enter Choice: ";
      cin &gt;&gt; choice;
      cout &lt;&lt; endl;
      cout &lt;&lt; "Enter File Name: ";
      cin &gt;&gt; m_filename;
  for (int i = 0; i &lt; 6; i++)
  {
      switch (choice)
      {
      case 1:
          x.Read(m_filename);
          cout &lt;&lt; "Enter Choice: ";
          cin &gt;&gt; choice;
  
          break;
  {
  </code></pre>
  
  <p>Album.cpp</p>
  
  <pre><code>  void Album::Read(string filename)
  {
  
      string temp;
      ifstream Read;
      Read.open(filename);
  
      getline(Read, Title);
      getline(Read, temp);
      m_Artist.SetName(temp);
      getline(Read, temp);
      m_Artist.SetCountryofOrigin(temp);
  
  
      //temp = '0';
      for (int i = 0; i &lt; 6; i++)
      {
          Time m_Time;
          int sec;
          int min;
          getline(Read, temp);
          S[i].SetTitle(temp);
  
          getline(Read, temp);
  
          min = stoi(temp);
          m_Time.SetMinutes(min);
  
          getline(Read, temp);
  
          sec = stoi(temp);
          m_Time.SetSeconds(sec);
  
          S[i].SetTime(m_Time);
  
      }
  }
  </code></pre>