<?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: was ist hier falsch?]]></title><description><![CDATA[<p>Hallo zusammen. Kurze Frage, offensichtlich hab ich noch so meine Probleme mit der Stringklasse.</p>
<pre><code class="language-cpp">for(std::vector&lt;std::string&gt;::const_iterator itr = Content.begin();itr != Content.end(); ++itr)
				{
					found = (*itr).find(&quot;ApuState=&quot;);
					if(found != std::string::npos)
					{
						int i = DataOverhead.GetApuState();
						std::ostringstream Str;
						Str &lt;&lt; i;
						std::string s(Str.str());
						std::string.replace(found+1,s.length(),s);
					}
				}
</code></pre>
<blockquote>
<p>h:\users\sven\documents\visual studio 2005\projects\teamtripleseven\tts_b777_gau\overhead.cpp(188) : error C2143: syntax error : missing ';' before '.'</p>
</blockquote>
<p>Das ist Zeile 188:</p>
<pre><code class="language-cpp">std::string.replace(found+1,s.length(),s);
</code></pre>
<p>Danke schonmal im Voraus.</p>
<p>Viele Gruesse<br />
Sven</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/178321/string-was-ist-hier-falsch</link><generator>RSS for Node</generator><lastBuildDate>Sun, 20 Sep 2026 18:20:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/178321.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Apr 2007 11:35:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String: was ist hier falsch? on Tue, 10 Apr 2007 11:36:11 GMT]]></title><description><![CDATA[<p>Hallo zusammen. Kurze Frage, offensichtlich hab ich noch so meine Probleme mit der Stringklasse.</p>
<pre><code class="language-cpp">for(std::vector&lt;std::string&gt;::const_iterator itr = Content.begin();itr != Content.end(); ++itr)
				{
					found = (*itr).find(&quot;ApuState=&quot;);
					if(found != std::string::npos)
					{
						int i = DataOverhead.GetApuState();
						std::ostringstream Str;
						Str &lt;&lt; i;
						std::string s(Str.str());
						std::string.replace(found+1,s.length(),s);
					}
				}
</code></pre>
<blockquote>
<p>h:\users\sven\documents\visual studio 2005\projects\teamtripleseven\tts_b777_gau\overhead.cpp(188) : error C2143: syntax error : missing ';' before '.'</p>
</blockquote>
<p>Das ist Zeile 188:</p>
<pre><code class="language-cpp">std::string.replace(found+1,s.length(),s);
</code></pre>
<p>Danke schonmal im Voraus.</p>
<p>Viele Gruesse<br />
Sven</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1262884</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1262884</guid><dc:creator><![CDATA[schwudde]]></dc:creator><pubDate>Tue, 10 Apr 2007 11:36:11 GMT</pubDate></item><item><title><![CDATA[Reply to String: was ist hier falsch? on Tue, 10 Apr 2007 11:39:27 GMT]]></title><description><![CDATA[<p>Es darf nicht std::string.replace heissen.</p>
<p>Du musst das replace auf ein konkretes Objekt anwenden (z.B. s.replace(...))</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1262892</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1262892</guid><dc:creator><![CDATA[paddy@work]]></dc:creator><pubDate>Tue, 10 Apr 2007 11:39:27 GMT</pubDate></item></channel></rss>