<?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[Prüfen ob im string ein Leerzeichen ist.]]></title><description><![CDATA[<p>Wie kann ich mit <strong>if</strong> prüfen ob ein string wie z.b. str = &quot;Hallo Leute&quot; ein Leerzeichen hat. Hab folgendes probiert:</p>
<pre><code class="language-cpp">if(str.find(' '))
{ //... }
</code></pre>
<p>klappt nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/158704/prüfen-ob-im-string-ein-leerzeichen-ist</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 04:33:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/158704.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Sep 2006 19:12:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Prüfen ob im string ein Leerzeichen ist. on Thu, 07 Sep 2006 19:12:59 GMT]]></title><description><![CDATA[<p>Wie kann ich mit <strong>if</strong> prüfen ob ein string wie z.b. str = &quot;Hallo Leute&quot; ein Leerzeichen hat. Hab folgendes probiert:</p>
<pre><code class="language-cpp">if(str.find(' '))
{ //... }
</code></pre>
<p>klappt nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1133269</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1133269</guid><dc:creator><![CDATA[kernel64]]></dc:creator><pubDate>Thu, 07 Sep 2006 19:12:59 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob im string ein Leerzeichen ist. on Thu, 07 Sep 2006 19:22:53 GMT]]></title><description><![CDATA[<p>Versuch's mit</p>
<pre><code class="language-cpp">if (str.find(' ') != std::string::npos)
// oder ggf.
if (str.find_first_of(&quot; \t\n&quot;) != std::string::npos)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1133276</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1133276</guid><dc:creator><![CDATA[finix]]></dc:creator><pubDate>Thu, 07 Sep 2006 19:22:53 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob im string ein Leerzeichen ist. on Thu, 07 Sep 2006 19:57:46 GMT]]></title><description><![CDATA[<p>Danke das erste Beispiel funktioniert. Könntest du mir erklären was das string::npos auf sich hat</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1133304</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1133304</guid><dc:creator><![CDATA[kernel64]]></dc:creator><pubDate>Thu, 07 Sep 2006 19:57:46 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob im string ein Leerzeichen ist. on Thu, 07 Sep 2006 20:13:07 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Siehe <a href="http://www.cppreference.com/cppstring/find.html" rel="nofollow">hier</a>, das ist eine fest definierte Konstante, die eben nach einem find... anzeigt das nichts gefunden wurde.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1133307</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1133307</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 07 Sep 2006 20:13:07 GMT</pubDate></item></channel></rss>