title: linked list and reading from text file
body: <p>I am a beginner to all this c++ programming, and I want to try one last time to get help. I have to create a method called  add_aa( str ) that adds str in ascending alphabetical order. This involves using linked list and reading from a text file. In the text file, the following is in it: aa    hi    dd hi. that is all that is in the text file. in the main.cpp file here is a code that would out hi to str:</p>
  
  <pre><code>if( cmds.first == "aa" )            // add alphabetically
      {
          lst.add_aa( cmds.second );
      }
  </code></pre>
  
  <p>with this code, reading from the text file, hi would be outputted and assigned to str. I am trying to write the method that does this, but i cannot come up with anything. also, this is the output that i should receive to clear things up.
  <img src="https://i.stack.imgur.com/W4136.jpg" alt="enter image description here"></p>
  
  <p>my code so far is just:</p>
  
  <pre><code>inline void LList:: add_aa(const string _str)
  {
  cout &lt;&lt; "\tp = " &lt;&lt; std::hex &lt;&lt; p &lt;&lt; std::dec &lt;&lt; '\n';
  }
  </code></pre>