<?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[string.replace]]></title><description><![CDATA[<p>Hallo,<br />
Tut mir leid das ich wieder mit dummen fragen nerve aber leider hab in Bücher und Google keine weiter hilfe bekommen.<br />
Ich will das aus eine Variable String einige buchstaben gelöscht werden und der Text neu gegeben wird. Nur es kommt volgendes Feller:</p>
<pre><code>Fehler: »replace« wurde in diesem Gültigkeitsbereich nicht definiert
</code></pre>
<p>Kann mir bitte ein erkleren was mein FEller ist ? und woran es liegt<br />
Danke vor raus.</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include&lt;string&gt;

using namespace std;

int main()
{
	string text;
	cout &lt;&lt; &quot;Bitte ein Text: &quot; &lt;&lt; endl;
	cin &gt;&gt; text;
	cout  &lt;&lt; replace(&quot;a&quot;,&quot;e&quot;,&quot;i&quot;,&quot;o&quot;,&quot;u&quot;) &lt;&lt; endl;
	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/289204/string-replace</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 07:35:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/289204.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Jun 2011 10:04:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to string.replace on Thu, 30 Jun 2011 10:04:08 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Tut mir leid das ich wieder mit dummen fragen nerve aber leider hab in Bücher und Google keine weiter hilfe bekommen.<br />
Ich will das aus eine Variable String einige buchstaben gelöscht werden und der Text neu gegeben wird. Nur es kommt volgendes Feller:</p>
<pre><code>Fehler: »replace« wurde in diesem Gültigkeitsbereich nicht definiert
</code></pre>
<p>Kann mir bitte ein erkleren was mein FEller ist ? und woran es liegt<br />
Danke vor raus.</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include&lt;string&gt;

using namespace std;

int main()
{
	string text;
	cout &lt;&lt; &quot;Bitte ein Text: &quot; &lt;&lt; endl;
	cin &gt;&gt; text;
	cout  &lt;&lt; replace(&quot;a&quot;,&quot;e&quot;,&quot;i&quot;,&quot;o&quot;,&quot;u&quot;) &lt;&lt; endl;
	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2086490</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2086490</guid><dc:creator><![CDATA[-ProGresS-]]></dc:creator><pubDate>Thu, 30 Jun 2011 10:04:08 GMT</pubDate></item><item><title><![CDATA[Reply to string.replace on Thu, 30 Jun 2011 10:10:22 GMT]]></title><description><![CDATA[<p>-ProGresS- schrieb:</p>
<blockquote>
<p>Hallo,<br />
Tut mir leid das ich wieder mit dummen fragen nerve aber leider hab in Bücher und Google keine weiter hilfe bekommen.</p>
</blockquote>
<p>Meinst du, uns anlügen zu müssen? Das hinterlässt ja einen super Eindruck. Kein Buch ist so schlecht. Und auch Google nicht:</p>
<p><a href="https://www.google.de/search?&amp;q=string%20replace" rel="nofollow">Google: string replace</a><br />
Schon nicht schlecht. Schade nur, dass Java, PHP und .NET sich vordrängeln.</p>
<p><a href="https://www.google.de/search?&amp;q=string%20replace%20C%2B%2B" rel="nofollow">Google: string replace C++</a><br />
Jetzt sag nicht, dass du da drauf nicht gekommen wärest. Du hast es nämlich gar nicht erst ausprobiert, das selber herauszufinden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2086494</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2086494</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 30 Jun 2011 10:10:22 GMT</pubDate></item><item><title><![CDATA[Reply to string.replace on Thu, 30 Jun 2011 10:11:16 GMT]]></title><description><![CDATA[<p>1. replace ist in &lt;algorithm&gt; definiert, du musst also &lt;algorithm&gt; einbinden.<br />
2. Was möchtest du? Buchstaben löschen oder Buchstaben ersetzen, das eine lässt sich durch replace lösen, das andere nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2086496</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2086496</guid><dc:creator><![CDATA[DocShoe]]></dc:creator><pubDate>Thu, 30 Jun 2011 10:11:16 GMT</pubDate></item><item><title><![CDATA[Reply to string.replace on Thu, 30 Jun 2011 10:34:13 GMT]]></title><description><![CDATA[<p>-ProGresS- schrieb:</p>
<blockquote>
<p>vor raus.</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2086509</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2086509</guid><dc:creator><![CDATA[_mad_]]></dc:creator><pubDate>Thu, 30 Jun 2011 10:34:13 GMT</pubDate></item><item><title><![CDATA[Reply to string.replace on Thu, 30 Jun 2011 12:13:35 GMT]]></title><description><![CDATA[<p><em>mad</em> schrieb:</p>
<blockquote>
<p>-ProGresS- schrieb:</p>
<blockquote>
<p>vor raus.</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
</blockquote>
<p>Jugendschutzfilter sollte ausgebessert werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2086572</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2086572</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Thu, 30 Jun 2011 12:13:35 GMT</pubDate></item><item><title><![CDATA[Reply to string.replace on Thu, 30 Jun 2011 12:57:40 GMT]]></title><description><![CDATA[<p>cooky451 schrieb:</p>
<blockquote>
<p><em>mad</em> schrieb:</p>
<blockquote>
<p>-ProGresS- schrieb:</p>
<blockquote>
<p>vor raus.</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
</blockquote>
<p>Jugendschutzfilter sollte ausgebessert werden.</p>
</blockquote>
<p>Ein automatischer <a href="http://www.duden.de/suchen/dudenonline/voraus" rel="nofollow">Link</a> evtl.?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2086610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2086610</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Thu, 30 Jun 2011 12:57:40 GMT</pubDate></item></channel></rss>