<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[STL Bug mit find_first_of?]]></title><description><![CDATA[<p>Hi,</p>
<p>ich benutz Express und glaube ich habe einen Fehler in der STL gefunden!</p>
<pre><code class="language-cpp">std::string cmd = &quot;c:\\test test\\temp.exe -wert:333 -flag&quot;;

        // Der gibt hier 4 wieder, sollte es nicht 17 sein?!
        size_t wert = cmd.find_first_of (&quot;.exe&quot;);
</code></pre>
<p>Ich bekomm da 4 wieder?!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/158940/stl-bug-mit-find_first_of</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 07:47:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/158940.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 10 Sep 2006 13:10:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to STL Bug mit find_first_of? on Sun, 10 Sep 2006 13:10:14 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich benutz Express und glaube ich habe einen Fehler in der STL gefunden!</p>
<pre><code class="language-cpp">std::string cmd = &quot;c:\\test test\\temp.exe -wert:333 -flag&quot;;

        // Der gibt hier 4 wieder, sollte es nicht 17 sein?!
        size_t wert = cmd.find_first_of (&quot;.exe&quot;);
</code></pre>
<p>Ich bekomm da 4 wieder?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1134629</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1134629</guid><dc:creator><![CDATA[Bugfinder]]></dc:creator><pubDate>Sun, 10 Sep 2006 13:10:14 GMT</pubDate></item><item><title><![CDATA[Reply to STL Bug mit find_first_of? on Sun, 10 Sep 2006 13:16:04 GMT]]></title><description><![CDATA[<p>Bugfinder schrieb:</p>
<blockquote>
<p>ich benutz Express und glaube ich habe einen Fehler in der STL gefunden!</p>
</blockquote>
<p>Kein Fehler. Du hast nicht gelesen (oder nicht verstanden), was find_first_of tut.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1134634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1134634</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sun, 10 Sep 2006 13:16:04 GMT</pubDate></item><item><title><![CDATA[Reply to STL Bug mit find_first_of? on Sun, 10 Sep 2006 13:19:31 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>nein, das Ergebnis ist korrekt, du solltest du dir nur mal die Erläuterungen zu <a href="http://www.cppreference.com/cppstring/find_first_of.html" rel="nofollow">find_first_of</a> anschauen. Denn bei dir wird nach dem ersten Zeichen aus dem string-Parameter gesucht, nicht aber nach dem string-Parameter selber! Deshalb wird die stelle 4 gefunden, was 'e' ist.<br />
Du hingegen willst die Funktion <a href="http://www.cppreference.com/cppstring/find.html" rel="nofollow">find</a> einsetzen</p>
<p>/Edit : zu langsames nachschlagen</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1134635</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1134635</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sun, 10 Sep 2006 13:19:31 GMT</pubDate></item></channel></rss>