<?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[Probleme mit String]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>die Ausgabe eines String-Objekts ergibt in meinem Programm folgendes (MySQL-Query):</p>
<p>popunder[0]=&quot;<a href="http://adserver.partner-versicherung.de/click.php?partner_id=17622&amp;ad_id=1var" rel="nofollow">http://adserver.partner-versicherung.de/click.php?partner_id=17622&amp;ad_id=1var</a> p = 'scrollbars=yes,resizable=yes,toolbar=no,' + //these are obvious variables. set'menubar=no,status=no,location=no,left=85,top=20,height=' + //yes/no, &amp; the screen locvar one_time=1',NULL,NULL,NULL,NULL,NULL,'Baden-Wuerttemberg',NULL,NULL,NULL, '<a href="http://www.wirths-gmbh.de" rel="nofollow">www.wirths-gmbh.de</a>',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'low');</p>
<p>Die Suche nach &quot;´&quot;, &quot;`&quot; und &quot;'&quot; per find ergibt jedoch keine Treffer, obwohl, wie man sieht, diese eindeutig vorhanden sind. Desweiteren ergibt die Suche nach &quot;values(&quot; einen Treffer, obwohl &quot;values(&quot; gar nicht ausgegeben wird.</p>
<p>Wie kann sowas sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/146758/probleme-mit-string</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Sep 2026 23:34:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/146758.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 May 2006 16:09:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit String on Wed, 10 May 2006 16:09:00 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>die Ausgabe eines String-Objekts ergibt in meinem Programm folgendes (MySQL-Query):</p>
<p>popunder[0]=&quot;<a href="http://adserver.partner-versicherung.de/click.php?partner_id=17622&amp;ad_id=1var" rel="nofollow">http://adserver.partner-versicherung.de/click.php?partner_id=17622&amp;ad_id=1var</a> p = 'scrollbars=yes,resizable=yes,toolbar=no,' + //these are obvious variables. set'menubar=no,status=no,location=no,left=85,top=20,height=' + //yes/no, &amp; the screen locvar one_time=1',NULL,NULL,NULL,NULL,NULL,'Baden-Wuerttemberg',NULL,NULL,NULL, '<a href="http://www.wirths-gmbh.de" rel="nofollow">www.wirths-gmbh.de</a>',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'low');</p>
<p>Die Suche nach &quot;´&quot;, &quot;`&quot; und &quot;'&quot; per find ergibt jedoch keine Treffer, obwohl, wie man sieht, diese eindeutig vorhanden sind. Desweiteren ergibt die Suche nach &quot;values(&quot; einen Treffer, obwohl &quot;values(&quot; gar nicht ausgegeben wird.</p>
<p>Wie kann sowas sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1054968</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1054968</guid><dc:creator><![CDATA[Agamemnon]]></dc:creator><pubDate>Wed, 10 May 2006 16:09:00 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit String on Wed, 10 May 2006 16:18:56 GMT]]></title><description><![CDATA[<p>Bitte poste den Code, mit dem du suchst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1054975</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1054975</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Wed, 10 May 2006 16:18:56 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit String on Wed, 10 May 2006 16:24:39 GMT]]></title><description><![CDATA[<p>Hier der Suchcode</p>
<pre><code>...
pos = temp.find(&quot;´&quot;);
cout &lt;&lt; pos &lt;&lt; endl;
while(pos &gt; -1)
{
   	 cout &lt;&lt; &quot;gefunden&quot; &lt;&lt; endl;
      	 temp.erase(pos,1);
      	 pos = temp.find(&quot;´&quot;);
}      

pos = temp.find(&quot;`&quot;);
cout &lt;&lt; pos &lt;&lt; endl;
while(pos &gt; -1)
{
      	 cout &lt;&lt; &quot;gefunden&quot; &lt;&lt; endl;
      	 temp.erase(pos,1);
      	 pos = temp.find(&quot;`&quot;);
}      

pos = temp.find(&quot;'&quot;);
cout &lt;&lt; pos &lt;&lt; endl;
while(pos &gt; -1)
{
 	 cout &lt;&lt; &quot;gefunden&quot; &lt;&lt; endl;
      	 temp.erase(pos,1);
      	 pos = temp.find(&quot;'&quot;);
}    
...
</code></pre>
<p>Mit den &quot;cout &lt;&lt; pos &lt;&lt; endl;&quot; überprüfe ich ob was gefunden wurde, es wird jedoch immer -1 ausgegeben (nichts gefunden).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1054978</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1054978</guid><dc:creator><![CDATA[Agamemnon]]></dc:creator><pubDate>Wed, 10 May 2006 16:24:39 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit String on Wed, 10 May 2006 16:42:48 GMT]]></title><description><![CDATA[<p>Der String aus deinem ersten Posting ist nicht richtig. Keine Ahnung, was du da schreiben wolltest.</p>
<p>Dieses Beispiel funktioniert bei mir problemlos:</p>
<pre><code class="language-cpp">#include &lt;string&gt;
#include &lt;iostream&gt;
using namespace std;

int main()
{
	string popunder=&quot;bl'ub´b`s&quot;;

	cout &lt;&lt; popunder.find(&quot;'&quot;) &lt;&lt; &quot;\t&quot; &lt;&lt; popunder.find(&quot;´&quot;) &lt;&lt; &quot;\t&quot; &lt;&lt; popunder.find(&quot;`&quot;);

	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1054992</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1054992</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Wed, 10 May 2006 16:42:48 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit String on Wed, 10 May 2006 16:53:25 GMT]]></title><description><![CDATA[<p>Aus meinem String wird komischerweise auch nicht alles ausgegeben.<br />
Es werden Sachen darin gefunden, die vorher nicht ausgegeben wurden.<br />
Kann das an der Länge des Strings liegen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1055001</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1055001</guid><dc:creator><![CDATA[Agamemnon]]></dc:creator><pubDate>Wed, 10 May 2006 16:53:25 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit String on Wed, 10 May 2006 17:18:51 GMT]]></title><description><![CDATA[<p>Wie sieht denn dein String konkret aus? Den aus deinem ersten Posting wird dir kein Compiler abnehmen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1055031</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1055031</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Wed, 10 May 2006 17:18:51 GMT</pubDate></item></channel></rss>