<?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[Stringmanipulation&amp;amp;anderes in c++]]></title><description><![CDATA[<p>Erst einmal hallo zusammen !</p>
<p>Ich lerne seit kurzem c++ anhand von Volkards c++ tutorial und habe ein paar Fragen. Ich komme aus der Basic Welt und frage mich, wie man in c++ einen String nach einem bestimmten Satzteil durchsucht und feststellt wo dieser beginnt (Beispiel Durchsuche &quot;Computer&quot; nach &quot;pute&quot;) in freebasic würde ich dies mittels der instr() Funktion bewältigen. In der c++ Referenz (<a href="http://www.cppreference.com/index.html" rel="nofollow">http://www.cppreference.com/index.html</a>) unter Strings finde ich allerdings nichts passendes, oder verstehe nicht wie man es anstellen muss. Kann mir jmd. helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/174633/stringmanipulation-amp-anderes-in-c</link><generator>RSS for Node</generator><lastBuildDate>Fri, 18 Sep 2026 20:13:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/174633.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Mar 2007 13:08:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Stringmanipulation&amp;amp;anderes in c++ on Thu, 01 Mar 2007 13:08:10 GMT]]></title><description><![CDATA[<p>Erst einmal hallo zusammen !</p>
<p>Ich lerne seit kurzem c++ anhand von Volkards c++ tutorial und habe ein paar Fragen. Ich komme aus der Basic Welt und frage mich, wie man in c++ einen String nach einem bestimmten Satzteil durchsucht und feststellt wo dieser beginnt (Beispiel Durchsuche &quot;Computer&quot; nach &quot;pute&quot;) in freebasic würde ich dies mittels der instr() Funktion bewältigen. In der c++ Referenz (<a href="http://www.cppreference.com/index.html" rel="nofollow">http://www.cppreference.com/index.html</a>) unter Strings finde ich allerdings nichts passendes, oder verstehe nicht wie man es anstellen muss. Kann mir jmd. helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1237433</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1237433</guid><dc:creator><![CDATA[alfonsospringer]]></dc:creator><pubDate>Thu, 01 Mar 2007 13:08:10 GMT</pubDate></item><item><title><![CDATA[Reply to Stringmanipulation&amp;amp;anderes in c++ on Thu, 01 Mar 2007 13:15:06 GMT]]></title><description><![CDATA[<p>Suchen kannst du ganz einfach mit der Methode find():</p>
<pre><code class="language-cpp">string eingabe=&quot;Computer&quot;;
size_t sub_pos=eingabe.find(&quot;pute&quot;);
if(sub_pos==string::npos)
  cout&lt;&lt;&quot;nichts gefunden&quot;&lt;&lt;endl;
else
  cout&lt;&lt;&quot;gefunden an Position &quot;&lt;&lt;sub_pos&lt;&lt;endl;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1237438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1237438</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 01 Mar 2007 13:15:06 GMT</pubDate></item></channel></rss>