title: Find all instances of string in anotherstring
body: <p>Below i have a peice of code that compares two strings.</p>
  
  <pre><code>if (long.find(short) != string::npos) {
          cout &lt;&lt; "FOUND";
  }
  </code></pre>
  
  <p>This only tells me if it finds the short string in the long string. But how can i go about finding all the instances and tell the user where those instances of the string show? </p>
  
  <p>I get the idea to maybe make this a loop but im having trouble implementing it.</p>