C++ std::string compare with abbreviations
<p>Let's say I have read a C++ std::string, <em>mystring</em>, in from <em>std::cin</em> thus:</p>

<pre><code>std::cin  &gt;&gt;  mystring;
</code></pre>

<p>Now I'd like to see if <em>mystring</em> is any substring of <em>std::masterStr</em> with at least <em>len</em> characters matching.</p>

<p>In Rexx id say </p>

<pre><code>abbrev( mystring, masterStr, len ).   
</code></pre>

<p>How do I code it in C++?</p>
