title: How to delete duplicates in vector (without sorting) C++
body: <p>I have a vector that the user inputs some strings. I want to keep the order that the user inputs but delete any duplicate words. The only thing I could find online is sort and unique but since I cannot sort the vector I am stuck. Thank you in advance for any help.  </p>
  
  <p>e.x. 
    input from user -> hello there dog cat hello cat book</p>
  
  <p>vector should have -> hello there dog cat book</p>
  
  <p>right now all I have is...</p>
  
  <pre><code>string s; 
  vector &lt;string&gt; myVec; 
  
  while (cin &gt;&gt; s){
   myVec.push_back(s); 
  }
  
  {code to sort vector}
  </code></pre>